Beispiel #1
0
 public string getSentMsg(User user, string profileId,int days)
 {
     string strArray = string.Empty;
     try
     {
         TwitterMessageRepository objtwttatsRepo = new TwitterMessageRepository();
         ArrayList alstTwt = objtwttatsRepo.gettwtFeedsStatsByProfileId(user.Id, profileId,days);
       //  strArray = "[";
         int cnt = 0;
         if (alstTwt.Count > 0)
         {
             for (int i = 0; i < alstTwt.Count; i++)
             {
                 strArray = strArray + alstTwt[i].ToString();
                 cnt++;
             }
         }
         if (cnt < 7)
         {
             for (int j = 0; j < 7 - cnt; j++)
             {
                 strArray = strArray + ",0";
             }
         }
       //  strArray += "]";
     }
     catch (Exception Err)
     {
         Console.Write(Err.StackTrace);
     }
     return strArray;
 }