Ejemplo n.º 1
0
 public OTA_HotelResSaveRQ(ApiConfig config)
 {
     this.TimeStamp    = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fff+08:00");
     this.Version      = "1.0";
     this.UniqueIDList = new List <UniqueID>()
     {
         new UniqueID()
         {
             Type = "504"
         },                                  //表示分销商订单号
         new UniqueID()
         {
             Type = "28", ID = config.AllianceID
         },
         new UniqueID()
         {
             Type = "503", ID = config.SID
         },
         new UniqueID()
         {
             Type = "1", ID = config.UID
         }
     };
     this.HotelReservations = new HotelReservations();
 }
Ejemplo n.º 2
0
 public OTA_HotelResRQ(ApiConfig config)
 {
     this.TimeStamp     = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fff+08:00");
     this.Version       = "2.0";
     this.PrimaryLangID = "zh";
     //this.RatePlanCategory = "501";
     this.UniqueIDList = new List <UniqueID>()
     {
         //new UniqueID(){ Type="504", ID="100000"},
         new UniqueID()
         {
             Type = "28", ID = config.AllianceID
         },
         new UniqueID()
         {
             Type = "503", ID = config.SID
         },
         new UniqueID()
         {
             Type = "1", ID = config.UID
         }
     };
     this.HotelReservations = new HotelReservations();
 }