Параметры метода messages.getLongPollHistoryParams
コード例 #1
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 public static VkParameters ToVkParameters(MessagesGetLongPollHistoryParams p)
 {
     return(new VkParameters
     {
         { "ts", p.Ts },
         { "pts", p.Pts },
         { "preview_length", p.PreviewLength },
         { "onlines", p.Onlines },
         { "fields", p.Fields },
         { "events_limit", p.EventsLimit },
         { "msgs_limit", p.MsgsLimit },
         { "max_msg_id", p.MaxMsgId }
     });
 }
コード例 #2
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(MessagesGetLongPollHistoryParams p)
        {
            return new VkParameters
            {
                { "ts", p.Ts },
                { "pts", p.Pts },
                { "preview_length", p.PreviewLength },
                { "onlines", p.Onlines },
                { "fields", p.Fields },
                { "events_limit", p.EventsLimit },
                { "msgs_limit", p.MsgsLimit },
                { "max_msg_id", p.MaxMsgId }
            };
        }