Example #1
0
        private void AsyncGetFriendsInfo()
        {
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_0061: Unknown result type (might be due to invalid IL or missing references)
            IRailFriends val = rail_api.RailFactory().RailFriends();

            if (val != null)
            {
                List <RailFriendInfo> list = new List <RailFriendInfo>();
                val.GetFriendsList(list);
                List <RailID> list2 = new List <RailID>();
                foreach (RailFriendInfo item in list)
                {
                    list2.Add(item.friend_rail_id);
                }
                val.AsyncGetPersonalInfo(list2, "");
            }
        }
Example #2
0
        private void AsyncGetFriendsInfo()
        {
            IRailFriends irailFriends = rail_api.RailFactory().RailFriends();

            if (irailFriends == null)
            {
                return;
            }
            List <RailFriendInfo> railFriendInfoList = new List <RailFriendInfo>();

            irailFriends.GetFriendsList(railFriendInfoList);
            List <RailID> railIdList = new List <RailID>();

            using (List <RailFriendInfo> .Enumerator enumerator = railFriendInfoList.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    RailFriendInfo current = enumerator.Current;
                    railIdList.Add((RailID)current.friend_rail_id);
                }
            }
            irailFriends.AsyncGetPersonalInfo(railIdList, "");
        }