Exemplo n.º 1
0
        private bool GetRailFriendList(List <RailFriendInfo> list)
        {
            bool         flag         = false;
            IRailFriends irailFriends = rail_api.RailFactory().RailFriends();

            if (irailFriends != null)
            {
                flag = irailFriends.GetFriendsList(list) == 0;
            }
            return(flag);
        }
Exemplo n.º 2
0
        private bool GetRailFriendList(List <RailFriendInfo> list)
        {
            //IL_0012: Unknown result type (might be due to invalid IL or missing references)
            //IL_0018: Invalid comparison between Unknown and I4
            bool         result = false;
            IRailFriends val    = rail_api.RailFactory().RailFriends();

            if (val != null)
            {
                result = ((int)val.GetFriendsList(list) == 0);
            }
            return(result);
        }
Exemplo n.º 3
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, "");
            }
        }
Exemplo n.º 4
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, "");
        }