Пример #1
0
 public MsgPostAwadeList(Dictionary <string, int> userIdCountAwardList)
 {
     m_msgData.type = 1;
     foreach (KeyValuePair <string, int> ky in userIdCountAwardList)
     {
         Msg.AwardInfo info = new Msg.AwardInfo();
         info.userId = ky.Key;
         info.count  = ky.Value;
         m_msgData.data.Add(info);
     }
 }
Пример #2
0
 //神秘大奖
 public MsgPostAwadeList(Dictionary <string, int> userIdCountAwardList, string mysterious)
 {
     Msg.AwardInfo3 info = new Msg.AwardInfo3();
     info.mysterious = mysterious;
     m_msgData.type  = 3;
     m_msgData.data.Add(info);
     foreach (KeyValuePair <string, int> ky in userIdCountAwardList)
     {
         Msg.AwardInfo user = new Msg.AwardInfo();
         user.userId = ky.Key;
         user.count  = ky.Value;
         info.users.Add(user);
     }
 }