BuildPayload() 공개 메소드

public BuildPayload ( string schemaId, List objects ) : Payload
schemaId string
objects List
리턴 OverflowStack.GenericData.SharedDomains.Models.Payload
예제 #1
0
 private static Response TestUpdate(DataClient client, DataRecord record)
 {
     var payload = client.BuildPayload("TestUser", new List<object> { record.Values[0], "John Doe", "America", "1989-02-28", false, 23, 135.79, DateTime.Now });
     var request = client.BuildRequest(payload, "update", "1234", "user1");
     var response = client.Send(request);
     return response.Result;
 }
예제 #2
0
 private static Response TestAdd(DataClient client)
 {
     var payload = client.BuildPayload("TestUser", new List<object> {Guid.Empty, "Jane Citizen", "Australia", "1985-01-23", true, 12, 345.678, DateTime.Now});
     var request = client.BuildRequest(payload, "add", "1234", "user1");
     var response = client.Send(request);
     return response.Result;
 }