Convert the member names to camelCase for interfaces/class/types getting marshalled to C# side.

This commit is contained in:
Attila Hajdrik 2018-05-08 09:09:44 -07:00 committed by Steve Sanderson
parent ad501dc77f
commit 480691d3ed
2 changed files with 9 additions and 9 deletions

View File

@ -318,10 +318,10 @@ function raiseEvent(event: Event, browserRendererId: number, componentId: number
} }
const eventDescriptor = { const eventDescriptor = {
BrowserRendererId: browserRendererId, browserRendererId,
ComponentId: componentId, componentId,
EventHandlerId: eventHandlerId, eventHandlerId,
EventArgsType: eventArgs.type eventArgsType: eventArgs.type
}; };
platform.callMethod(raiseEventMethod, null, [ platform.callMethod(raiseEventMethod, null, [

View File

@ -34,11 +34,11 @@ async function sendAsync(id: number, method: string, requestUri: string, body: s
function dispatchSuccessResponse(id: number, response: Response, responseText: string) { function dispatchSuccessResponse(id: number, response: Response, responseText: string) {
const responseDescriptor: ResponseDescriptor = { const responseDescriptor: ResponseDescriptor = {
StatusCode: response.status, statusCode: response.status,
Headers: [] headers: []
}; };
response.headers.forEach((value, name) => { response.headers.forEach((value, name) => {
responseDescriptor.Headers.push([name, value]); responseDescriptor.headers.push([name, value]);
}); });
dispatchResponse( dispatchResponse(
@ -81,6 +81,6 @@ interface ResponseDescriptor {
// We don't have BodyText in here because if we did, then in the JSON-response case (which // We don't have BodyText in here because if we did, then in the JSON-response case (which
// is the most common case), we'd be double-encoding it, since the entire ResponseDescriptor // is the most common case), we'd be double-encoding it, since the entire ResponseDescriptor
// also gets JSON encoded. It would work but is twice the amount of string processing. // also gets JSON encoded. It would work but is twice the amount of string processing.
StatusCode: number; statusCode: number;
Headers: string[][]; headers: string[][];
} }