public async Task <GuestScanResult> ScanGuest(string guestToken) { JObject @params = new JObject() { new JProperty("params", new JObject() { new JProperty("host_token", Settings.CurrentHost.Token), new JProperty("guest_token", guestToken) }) }; GuestScanResponse response = await restClient.PostAsync <GuestScanResponse, JObject>(Constants.ApiURI.URL_MAIN + Constants.ApiURI.GUEST_BOOK_SCAN_GUEST, @params); return(response?.Result); }
public async Task <GuestScanResult> ManualCheckIn(GuestCheckIn guest) { JObject @params = new JObject() { new JProperty("params", new JObject() { new JProperty("auth", Settings.CurrentHost.Token), new JProperty("guest", new JObject() { new JProperty("name", guest.Name), new JProperty("mobile", guest.Mobile), new JProperty("email", guest.Email), new JProperty("passport", guest.Passport), new JProperty("passport_image", guest.PassportImage), new JProperty("country", guest.Country) }) }) }; GuestScanResponse response = await restClient.PostAsync <GuestScanResponse, JObject>(Constants.ApiURI.URL_MAIN + Constants.ApiURI.MANUAL_CHECK_IN, @params); return(response?.Result); }