Example #1
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 internal static VkParameters ToVkParameters(GetLongPollHistoryParams 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 }
     });
 }
Example #2
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 internal static VkParameters ToVkParameters(GetLongPollHistoryParams 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 }
     };
 }