コード例 #1
0
 public GetDisastersResponse GetDisasters(GetDisastersRequest request)
 {
     return new GetDisastersResponse
     {
         Disasters = new List<Disaster>{
             new Disaster{ Name = "Tzunami in Thailan", Id = Guid.NewGuid().ToString(), Location = new Location { Latitude = 73.6262626, Longitude = 64.4449949 }, IsActive = true },
             new Disaster{ Name = "Hurican in Miami", Id = Guid.NewGuid().ToString(), Location = new Location { Latitude = 73.6262626, Longitude = 76.696969 }, IsActive = true },
             new Disaster{ Name = "Tornado in Cuba", Id = Guid.NewGuid().ToString(), Location = new Location { Latitude = 73.6262626, Longitude = 32.4449949 }, IsActive = true }
         }
     };
 }
コード例 #2
0
 public GetDisastersResponse GetDisasters(GetDisastersRequest request)
 {
     return(new GetDisastersResponse
     {
         Disasters = new List <Disaster> {
             new Disaster {
                 Name = "Tzunami in Thailan", Id = Guid.NewGuid().ToString(), Location = new Location {
                     Latitude = 73.6262626, Longitude = 64.4449949
                 }, IsActive = true
             },
             new Disaster {
                 Name = "Hurican in Miami", Id = Guid.NewGuid().ToString(), Location = new Location {
                     Latitude = 73.6262626, Longitude = 76.696969
                 }, IsActive = true
             },
             new Disaster {
                 Name = "Tornado in Cuba", Id = Guid.NewGuid().ToString(), Location = new Location {
                     Latitude = 73.6262626, Longitude = 32.4449949
                 }, IsActive = true
             }
         }
     });
 }