Параметры метода friends.getMutual
Esempio n. 1
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(FriendsGetMutualParams p)
		{
			var parameters = new VkParameters
			{
				{ "source_uid", p.SourceUid },
				{ "target_uid", p.TargetUid },
				{ "target_uids", p.TargetUids },
				{ "order", p.Order },
				{ "count", p.Count },
				{ "offset", p.Offset }
			};

			return parameters;
		}
Esempio n. 2
0
		public ReadOnlyCollection<long> GetMutual(long targetUid, long sourceUid)
		{
			var parameters = new FriendsGetMutualParams
			{
				SourceUid = sourceUid,
				TargetUid = targetUid
			};

			return GetMutual(parameters);
		}
Esempio n. 3
0
 public ReadOnlyCollection<long> GetMutual(FriendsGetMutualParams @params)
 {
     VkResponseArray response = _vk.Call("friends.getMutual", @params);
     return response.ToReadOnlyCollectionOf<long>(x => x);
 }