public KnockerResponse(DTO_KnockerResponse kr)
 {
     KnockerResponseID     = kr.KnockerResponseID;
     KnockerID             = kr.KnockerID;
     KnockerResponseTypeID = kr.KnockResponseTypeID;
     Address   = kr.Address;
     Zip       = kr.Zip;
     Latitude  = kr.Latitude;
     Longitude = kr.Longitude;
 }
        public async Task GetKnockerResponseByID(DTO_KnockerResponse token)
        {
            try
            {
                var response = await client.PostAsJsonAsync(string.Format(@"{0}{1}", URL, "GetKnockerResponseByID"),
                                                            token);

                response.EnsureSuccessStatusCode();
                KnockerResponse = await response.Content.ReadAsAsync <DTO_KnockerResponse>();
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 3
0
 async public Task <string> UpdateKnockerResponse(DTO_KnockerResponse token)
 {
     KnockerResponse = JsonConvert.DeserializeObject <DTO_KnockerResponse>(await MakeRequest(token, "UpdateKnockerResponse"));
     return(KnockerResponse.Message);
 }