Example #1
0
            public void send_setNotificationAndRequest(int userId, string notificationIds, int filterType, bool clicked, Session session)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("setNotificationAndRequest", TMessageType.Call, seqid_));
                setNotificationAndRequest_args args = new setNotificationAndRequest_args();

                args.UserId          = userId;
                args.NotificationIds = notificationIds;
                args.FilterType      = filterType;
                args.Clicked         = clicked;
                args.Session         = session;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Example #2
0
            public void setNotificationAndRequest_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                setNotificationAndRequest_args args = new setNotificationAndRequest_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                setNotificationAndRequest_result result = new setNotificationAndRequest_result();

                try {
                    result.Success = iface_.setNotificationAndRequest(args.UserId, args.NotificationIds, args.FilterType, args.Clicked, args.Session);
                } catch (NotificationException ne) {
                    result.Ne = ne;
                } catch (SessionException se) {
                    result.Se = se;
                }
                oprot.WriteMessageBegin(new TMessage("setNotificationAndRequest", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
 public void setNotificationAndRequest_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   setNotificationAndRequest_args args = new setNotificationAndRequest_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   setNotificationAndRequest_result result = new setNotificationAndRequest_result();
   try {
     result.Success = iface_.setNotificationAndRequest(args.UserId, args.NotificationIds, args.FilterType, args.Clicked, args.Session);
   } catch (NotificationException ne) {
     result.Ne = ne;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("setNotificationAndRequest", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public void send_setNotificationAndRequest(int userId, string notificationIds, int filterType, bool clicked, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("setNotificationAndRequest", TMessageType.Call, seqid_));
   setNotificationAndRequest_args args = new setNotificationAndRequest_args();
   args.UserId = userId;
   args.NotificationIds = notificationIds;
   args.FilterType = filterType;
   args.Clicked = clicked;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }