Ejemplo n.º 1
0
        public nicehu.pb.Item ToProto()
        {
            var tiemPb = new nicehu.pb.Item();

            tiemPb.id    = this.Id;
            tiemPb.count = this.Count;
            return(tiemPb);
        }
Ejemplo n.º 2
0
 public Item FromProto(nicehu.pb.Item pb)
 {
     this.Id    = pb.id;
     this.Count = pb.count;
     return(this);
 }