public override DisqusThreadJsonModel Deconvert(IGetValues values, IDeconverterErrors errors)
 {
     return(new DisqusThreadJsonModel
     {
         Code = values.GetIntValue("code").Value,
         Response = values.GetChildValue <DisqusThreadResponse>("response"),
     });
 }
 public override MemberSearchRequestModel Deconvert(IGetValues values, IDeconverterErrors errors)
 {
     return(new MemberSearchRequestModel
     {
         Name = values.GetStringValue("Name"),
         IsAlert = values.GetBooleanValue("IsAlert").Value,
         Criteria = values.GetChildValue <MemberSearchCriteria>("Criteria"),
         DeviceToken = values.GetStringValue("DeviceToken"),
     });
 }
        public override JsonVerificationResponse Deconvert(IGetValues values, IDeconverterErrors errors)
        {
            var status    = values.GetIntValue("status").Value;
            var exception = values.GetStringValue("exception");
            var receipt   = values.GetChildValue <VerificationReceipt>("receipt");

            return(new JsonVerificationResponse
            {
                Status = status,
                Exception = exception,
                Receipt = receipt,
            });
        }
Beispiel #4
0
 public override CandidateModel Deconvert(IGetValues values, IDeconverterErrors errors)
 {
     return(new CandidateModel
     {
         Id = values.GetGuidValue("Id").Value,
         CanContact = values.GetValue <CanContactStatus>("CanContact").Value,
         CanContactByPhone = values.GetValue <CanContactStatus>("CanContactByPhone").Value,
         HasBeenViewed = values.GetBooleanValue("HasBeenViewed").Value,
         HasBeenAccessed = values.GetBooleanValue("HasBeenAccessed").Value,
         IsInMobileFolder = values.GetBooleanValue("IsInMobileFolder").Value,
         FullName = values.GetStringValue("FullName"),
         PhoneNumbers = values.GetStringArrayValue("PhoneNumbers"),
         Status = values.GetValue <CandidateStatus>("Status").Value,
         LastUpdatedTime = values.GetDateTimeValue("LastUpdatedTime"),
         Location = values.GetStringValue("Location"),
         DesiredJobTitle = values.GetStringValue("DesiredJobTitle"),
         DesiredJobTypes = values.GetFlagsValue <JobTypes>() ?? JobTypes.None,
         Summary = values.GetStringValue("Summary"),
         DesiredSalary = values.GetChildValue <SalaryModel>("DesiredSalary"),
         Jobs = values.GetArrayValue <JobModel>("Jobs"),
     });
 }