Exemple #1
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(shopid), ref shopid);
     i.Get(nameof(wx), ref wx);
     i.Get(nameof(quested), ref quested);
     i.Get(nameof(msgs), ref msgs);
 }
Exemple #2
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(name), ref name);
     i.Get(nameof(qty), ref qty);
     i.Get(nameof(unit), ref unit);
     i.Get(nameof(price), ref price);
 }
Exemple #3
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(host), ref host);
     i.Get(nameof(port), ref port);
     i.Get(nameof(database), ref database);
     i.Get(nameof(username), ref username);
     i.Get(nameof(password), ref password);
 }
Exemple #4
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(id), ref id);
     i.Get(nameof(name), ref name);
     i.Get(nameof(shard), ref shard);
     i.Get(nameof(arg), ref arg);
     i.Get(nameof(type), ref type);
     i.Get(nameof(body), ref body);
     i.Get(nameof(time), ref time);
 }
Exemple #5
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     if ((proj & BASIC) == BASIC)
     {
         if ((proj & BASIC_SHOPID) == BASIC_SHOPID)
         {
             i.Get(nameof(shopid), ref shopid);
         }
         i.Get(nameof(name), ref name);
         i.Get(nameof(descr), ref descr);
         if ((proj & BASIC_ICON) == BASIC_ICON)
         {
             i.Get(nameof(icon), ref icon);
         }
         i.Get(nameof(unit), ref unit);
         i.Get(nameof(price), ref price);
         i.Get(nameof(min), ref min);
         i.Get(nameof(step), ref step);
         i.Get(nameof(qty), ref qty);
     }
     i.Get(nameof(status), ref status);
 }
Exemple #6
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(shard), ref shard);
     i.Get(nameof(addrs), ref addrs);
     i.Get(nameof(db), ref db);
     i.Get(nameof(cluster), ref cluster);
     i.Get(nameof(logging), ref logging);
     i.Get(nameof(cache), ref cache);
 }
Exemple #7
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     if ((proj & ID) == ID)
     {
         i.Get(nameof(id), ref id);
     }
     if ((proj & BASIC) == BASIC)
     {
         i.Get(nameof(name), ref name);
         i.Get(nameof(descr), ref descr);
         if ((proj & BASIC_ICON) == BASIC_ICON)
         {
             i.Get(nameof(icon), ref icon);
         }
         i.Get(nameof(tel), ref tel);
         i.Get(nameof(city), ref city);
         i.Get(nameof(distr), ref distr);
         i.Get(nameof(addr), ref addr);
     }
     if ((proj & SUPER) == SUPER)
     {
         i.Get(nameof(lic), ref lic);
         i.Get(nameof(created), ref created);
         i.Get(nameof(mgrid), ref mgrid);
         if ((proj & SUPER_WX) == SUPER_WX)
         {
             i.Get(nameof(mgrwx), ref mgrwx);
         }
         i.Get(nameof(mgr), ref mgr);
     }
     i.Get(nameof(status), ref status);
 }
Exemple #8
0
        internal bool adm;     // admininistrator


        public void Read(IDataInput i, int proj = 0x00ff)
        {
            if ((proj & WX) == WX)
            {
                i.Get(nameof(wx), ref wx);
            }
            i.Get(nameof(name), ref name);
            i.Get(nameof(city), ref city);
            i.Get(nameof(distr), ref distr);
            i.Get(nameof(addr), ref addr);
            i.Get(nameof(tel), ref tel);

            if ((proj & CREATTED) == CREATTED)
            {
                i.Get(nameof(created), ref created);
            }

            if ((proj & BACKEND) != 0) // inclusive
            {
                i.Get(nameof(id), ref id);
                if ((proj & CREDENTIAL) == CREDENTIAL)
                {
                    i.Get(nameof(credential), ref credential);
                }
            }
            if ((proj & PERM) == PERM)
            {
                i.Get(nameof(oprat), ref oprat);
                i.Get(nameof(opr), ref opr);
                i.Get(nameof(sprat), ref sprat);
                i.Get(nameof(adm), ref adm);
            }
        }
Exemple #9
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     if ((proj & ID) == ID)
     {
         i.Get(nameof(id), ref id);
     }
     if ((proj & BASIC) == BASIC)
     {
         i.Get(nameof(created), ref created);
         i.Get(nameof(shop), ref shop);
         i.Get(nameof(shopid), ref shopid);
         i.Get(nameof(buyer), ref buyer);
         if ((proj & BASIC_WX) == BASIC_WX)
         {
             i.Get(nameof(wx), ref wx);
         }
         i.Get(nameof(city), ref city);
         i.Get(nameof(distr), ref distr);
         i.Get(nameof(addr), ref addr);
         i.Get(nameof(tel), ref tel);
         if ((proj & BASIC_DETAIL) == BASIC_DETAIL)
         {
             i.Get(nameof(detail), ref detail);
         }
         i.Get(nameof(note), ref note);
         i.Get(nameof(total), ref total);
     }
     if ((proj & CASH) == CASH)
     {
         i.Get(nameof(cash), ref cash);
     }
     if ((proj & FLOW) == FLOW)
     {
         i.Get(nameof(accepted), ref accepted);
         i.Get(nameof(coshopid), ref coshopid);
         i.Get(nameof(abortion), ref abortion);
         i.Get(nameof(aborted), ref aborted);
         i.Get(nameof(shipped), ref shipped);
     }
     i.Get(nameof(status), ref status);
 }
Exemple #10
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(code), ref code);
     i.Get(nameof(name), ref name);
     i.Get(nameof(distrs), ref distrs);
 }
Exemple #11
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(name), ref name);
     i.Get(nameof(text), ref text);
 }
Exemple #12
0
 public void Read(IDataInput i, int proj = 0x00ff)
 {
     i.Get(nameof(id), ref id);
     i.Get(nameof(shopid), ref shopid);
     i.Get(nameof(shop), ref shop);
     i.Get(nameof(orders), ref orders);
     i.Get(nameof(total), ref total);
     i.Get(nameof(cash), ref cash);
     i.Get(nameof(till), ref till);
     if ((proj & PAYING) == PAYING)
     {
         i.Get(nameof(paid), ref paid);
         i.Get(nameof(payer), ref payer);
     }
     i.Get(nameof(status), ref status);
     i.Get(nameof(err), ref err);
 }