Ejemplo n.º 1
0
        public bool Insert(int index, SASProfileHash obj)
        {
            if (index < 0 || index >= totalCnt)
            {
                return(false);
            }

            this.lstProfileHash[index].ProfileID = obj.ProfileID;
            this.lstProfileHash[index].HashKey   = obj.HashKey;

            return(true);
        }
Ejemplo n.º 2
0
 public bool IsAllSet()
 {
     for (int index = 0; index < this.totalCnt; index++)
     {
         SASProfileHash hash = this.lstProfileHash[index];
         if (null == hash.HashKey || hash.HashKey.Count() <= 0)
         {
             return(false);
         }
         if (string.IsNullOrEmpty(hash.ProfileID))
         {
             return(false);
         }
     }
     return(true);
 }
Ejemplo n.º 3
0
        public ProfileHashCheckReqData(uint requestID, uint totalCount)
        {
            if (totalCount <= 0)
            {
                FileLogManager.GetInstance().WriteLog("[DataSyncInfo] ProfileHashCheckReqData ( Invalid Total Count. )");
                throw new Exception("Invalid Total Count.");
            }

            this.reqEventID = requestID;
            this.totalCnt   = totalCount;

            this.lstProfileHash = new List <SASProfileHash>((int)totalCount);
            for (int index = 0; index < totalCount; index++)
            {
                SASProfileHash hash = new SASProfileHash();
                this.lstProfileHash.Add(hash);
            }
        }