/// <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 } }); }
/// <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 } }; }