Example #1
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.status    = Proto4z.BaseProtoObject.decodeUI8(binData, ref pos);
     this.following = new FollowingInfoArray();
     this.following.__decode(binData, ref pos);
     return(pos);
 }
Example #2
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            data.AddRange(Proto4z.BaseProtoObject.encodeUI8(status));
            if (following == null)
            {
                following = new FollowingInfoArray();
            }
            data.AddRange(following.__encode());
            return(data);
        }
Example #3
0
 public GetFollowingAck()
 {
     status    = 0;
     following = new FollowingInfoArray();
 }
Example #4
0
 public GetFollowingAck(byte status, FollowingInfoArray following)
 {
     this.status    = status;
     this.following = following;
 }
Example #5
0
 public GetFollowerAck(byte status, FollowingInfoArray follower)
 {
     this.status   = status;
     this.follower = follower;
 }