Ejemplo n.º 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.Struct) {
           Inbox = new Inbox();
           Inbox.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Session = new Session();
           Session.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Ejemplo n.º 2
0
 public IAsyncResult send_deleteInboxRules(AsyncCallback callback, object state, Inbox inbox, Session session)
Ejemplo n.º 3
0
 public void send_deleteInboxRules(Inbox inbox, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("deleteInboxRules", TMessageType.Call, seqid_));
   deleteInboxRules_args args = new deleteInboxRules_args();
   args.Inbox = inbox;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Ejemplo n.º 4
0
 public IAsyncResult Begin_deleteInboxRules(AsyncCallback callback, object state, Inbox inbox, Session session)
 {
   return send_deleteInboxRules(callback, state, inbox, session);
 }
Ejemplo n.º 5
0
      /// <summary>
      /// Method to delete existing inbox rules with following parameters:
      /// @param Inbox messageFolder
      /// 1. int userId
      /// 2. int folderId
      /// @param InboxRule messageRule
      /// 1. int messageRuleId
      /// @param Session sessionObj
      /// @return int code
      /// @throws InboxException
      /// @throws SessionException
      /// </summary>
      /// <param name="inbox"></param>
      /// <param name="session"></param>
      public DbStatus deleteInboxRules(Inbox inbox, Session session)
      {
        #if !SILVERLIGHT
        send_deleteInboxRules(inbox, session);
        return recv_deleteInboxRules();

        #else
        var asyncResult = Begin_deleteInboxRules(null, null, inbox, session);
        return End_deleteInboxRules(asyncResult);

        #endif
      }
Ejemplo n.º 6
0
 public void send_updateInboxFolderName(Inbox inbox, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("updateInboxFolderName", TMessageType.Call, seqid_));
   updateInboxFolderName_args args = new updateInboxFolderName_args();
   args.Inbox = inbox;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Ejemplo n.º 7
0
      /// <summary>
      /// Method to create Inbox Rules that takes following paramaters with their respective field set:
      /// @param Inbox messageFolder
      /// 1. int userId
      /// 2. int folderId
      /// @param InboxRule messageRule
      /// 1. int ruleUserSelection,
      /// 2. int ruleTypeUser,
      /// 3. int ruleTypeSubject,
      /// 4. String subject,
      /// 5. String[] contactList,
      /// 6. String[] groupList
      /// @param Session sessionObj
      /// @return int code
      /// @throws InboxException
      /// @throws SessionException
      /// </summary>
      /// <param name="inbox"></param>
      /// <param name="session"></param>
      public Inbox createInboxRules(Inbox inbox, Session session)
      {
        #if !SILVERLIGHT
        send_createInboxRules(inbox, session);
        return recv_createInboxRules();

        #else
        var asyncResult = Begin_createInboxRules(null, null, inbox, session);
        return End_createInboxRules(asyncResult);

        #endif
      }
Ejemplo n.º 8
0
 public IAsyncResult send_updateInboxFolderName(AsyncCallback callback, object state, Inbox inbox, Session session)
Ejemplo n.º 9
0
      /// <summary>
      /// Method to update Inbox Folder Name with new name
      /// @param Inbox messageFolder with following values required
      ///  1. int userId
      ///  2. int folderId
      /// @param Session sessionObj
      /// @return int code
      /// @throws InboxException
      /// @throws SessionException
      /// </summary>
      /// <param name="inbox"></param>
      /// <param name="session"></param>
      public DbStatus updateInboxFolderName(Inbox inbox, Session session)
      {
        #if !SILVERLIGHT
        send_updateInboxFolderName(inbox, session);
        return recv_updateInboxFolderName();

        #else
        var asyncResult = Begin_updateInboxFolderName(null, null, inbox, session);
        return End_updateInboxFolderName(asyncResult);

        #endif
      }
Ejemplo n.º 10
0
 public IAsyncResult Begin_updateInboxFolderName(AsyncCallback callback, object state, Inbox inbox, Session session)
 {
   return send_updateInboxFolderName(callback, state, inbox, session);
 }
Ejemplo n.º 11
0
 public IAsyncResult send_createInboxWithRules(AsyncCallback callback, object state, Inbox inbox, Session session)
Ejemplo n.º 12
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 0:
         if (field.Type == TType.List) {
           {
             Success = new List<Inbox>();
             TList _list272 = iprot.ReadListBegin();
             for( int _i273 = 0; _i273 < _list272.Count; ++_i273)
             {
               Inbox _elem274;
               _elem274 = new Inbox();
               _elem274.Read(iprot);
               Success.Add(_elem274);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           Ex = new InboxException();
           Ex.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Se = new SessionException();
           Se.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }