Ejemplo n.º 1
0
        public async Task <DisastersResponse> GetDisastersAsync(DisastersRequest request)
        {
            await Task.Delay(2000);

            return(new DisastersResponse {
                Succeeded = true,
                Result = new List <Disaster> {
                    new Disaster {
                        Id = 1,
                        IsActive = true,
                        Name = "Earthquake",
                        Location = "Panguna, Papa New Guinea"
                    },
                    new Disaster {
                        Id = 2,
                        IsActive = true,
                        Name = "Mudslide",
                        Location = "Oso, Washington"
                    },
                    new Disaster {
                        Id = 3,
                        IsActive = false,
                        Name = "Tsunami",
                        Location = "Ao Nang, Thailand"
                    },
                    new Disaster {
                        Id = 4,
                        IsActive = false,
                        Name = "Hurricane",
                        Location = "Haiti"
                    }
                }
            });
        }
Ejemplo n.º 2
0
 public async Task <DisastersResponse> GetDisastersAsync(DisastersRequest request)
 {
     throw new NotImplementedException();
 }