Example #1
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 internal static VkParameters ToVkParameters(HistoryGetParams p)
 {
     return new VkParameters
     {
         { "offset", p.Offset },
         { "count", p.Count },
         { "user_id", p.UserID },
         { "chat_id", p.ChatID },
         { "peer_id", p.PeerID },
         { "start_message_id", p.StartMessageID },
         { "rev", p.Reversed }
     };
 }
Example #2
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 internal static VkParameters ToVkParameters(HistoryGetParams p)
 {
     return(new VkParameters
     {
         { "offset", p.Offset },
         { "count", p.Count },
         { "user_id", p.UserID },
         { "chat_id", p.ChatID },
         { "peer_id", p.PeerID },
         { "start_message_id", p.StartMessageID },
         { "rev", p.Reversed }
     });
 }