Exemplo n.º 1
0
 public void LoadGroupName()
 {
     try
     {
         string        StrJson   = cw.GetGroupList();
         JsonGroupList GroupList = new JsonGroupList(StrJson);
         for (int i = 0; i <= GroupList.Result.Gnamelist.GetUpperBound(0); ++i)
         {
             Console.WriteLine("编号:{0},群名:{1},Gid:{2},Code:{3}",
                               i,
                               GroupList.Result.Gnamelist[i].Name,
                               GroupList.Result.Gnamelist[i].Gid,
                               GroupList.Result.Gnamelist[i].Code);
         }
     }
     catch (Exception e) { Console.WriteLine("您没有群!" + e.ToString()); }
 }
Exemplo n.º 2
0
 public string GetGroupList()
 {
     getSession();
     return(cw.GetGroupList());
 }