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)
                        {
                            this.req = new AskForVoteRequest();
                            this.req.Read(iprot);
                            this.__isset.req = true;
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
Ejemplo n.º 2
0
            public void send_askForVote(AskForVoteRequest req)
            {
                oprot_.WriteMessageBegin(new TMessage("askForVote", TMessageType.Call, seqid_));
                askForVote_args args = new askForVote_args();

                args.Req = req;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Ejemplo n.º 3
0
 public AskForVoteResponse askForVote(AskForVoteRequest req)
 {
     send_askForVote(req);
     return(recv_askForVote());
 }