public static GetMaterialsResponse Unmarshall(UnmarshallerContext context)
        {
            GetMaterialsResponse getMaterialsResponse = new GetMaterialsResponse();

            getMaterialsResponse.HttpResponse = context.HttpResponse;
            getMaterialsResponse.RequestId    = context.StringValue("GetMaterials.RequestId");
            getMaterialsResponse.Success      = context.BooleanValue("GetMaterials.Success");
            getMaterialsResponse.Code         = context.StringValue("GetMaterials.Code");
            getMaterialsResponse.Message      = context.StringValue("GetMaterials.Message");

            GetMaterialsResponse.GetMaterials_Data data = new GetMaterialsResponse.GetMaterials_Data();
            data.Name = context.StringValue("GetMaterials.Data.Name");
            data.IdentificationNumber = context.StringValue("GetMaterials.Data.IdentificationNumber");
            data.IdCardType           = context.StringValue("GetMaterials.Data.IdCardType");
            data.IdCardStartDate      = context.StringValue("GetMaterials.Data.IdCardStartDate");
            data.IdCardExpiry         = context.StringValue("GetMaterials.Data.IdCardExpiry");
            data.Address              = context.StringValue("GetMaterials.Data.Address");
            data.Sex                  = context.StringValue("GetMaterials.Data.Sex");
            data.IdCardFrontPic       = context.StringValue("GetMaterials.Data.IdCardFrontPic");
            data.IdCardBackPic        = context.StringValue("GetMaterials.Data.IdCardBackPic");
            data.FacePic              = context.StringValue("GetMaterials.Data.FacePic");
            data.EthnicGroup          = context.StringValue("GetMaterials.Data.EthnicGroup");
            getMaterialsResponse.Data = data;

            return(getMaterialsResponse);
        }
Exemple #2
0
 /// <summary> Setter constructor. </summary>
 public GetMaterials(GetMaterialsRequest request)
 {
     Request  = request;
     Response = new GetMaterialsResponse();
 }
Exemple #3
0
 /// <summary> Empty constructor. </summary>
 public GetMaterials()
 {
     Request  = new GetMaterialsRequest();
     Response = new GetMaterialsResponse();
 }