상속: TBase
예제 #1
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           From = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.String) {
           To = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I32) {
           ToType = (MIDType)iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.String) {
           Id = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.I64) {
           CreatedTime = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.I64) {
           DeliveredTime = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 10:
         if (field.Type == TType.String) {
           Text = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 11:
         if (field.Type == TType.Struct) {
           Location = new Location();
           Location.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 14:
         if (field.Type == TType.Bool) {
           HasContent = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 15:
         if (field.Type == TType.I32) {
           ContentType = (ContentType)iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 17:
         if (field.Type == TType.String) {
           ContentPreview = iprot.ReadBinary();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 18:
         if (field.Type == TType.Map) {
           {
             ContentMetadata = new Dictionary<string, string>();
             TMap _map24 = iprot.ReadMapBegin();
             for( int _i25 = 0; _i25 < _map24.Count; ++_i25)
             {
               string _key26;
               string _val27;
               _key26 = iprot.ReadString();
               _val27 = iprot.ReadString();
               ContentMetadata[_key26] = _val27;
             }
             iprot.ReadMapEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
예제 #2
0
 public void send_openProximityMatch(Location location)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("openProximityMatch", TMessageType.Call, seqid_));
   openProximityMatch_args args = new openProximityMatch_args();
   args.Location = location;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
예제 #3
0
 public IAsyncResult send_openProximityMatch(AsyncCallback callback, object state, Location location)
예제 #4
0
      public string openProximityMatch(Location location)
      {
        #if !SILVERLIGHT
        send_openProximityMatch(location);
        return recv_openProximityMatch();

        #else
        var asyncResult = Begin_openProximityMatch(null, null, location);
        return End_openProximityMatch(asyncResult);

        #endif
      }
예제 #5
0
 public IAsyncResult Begin_openProximityMatch(AsyncCallback callback, object state, Location location)
 {
   return send_openProximityMatch(callback, state, location);
 }
예제 #6
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 2:
         if (field.Type == TType.Struct) {
           Location = new Location();
           Location.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }