示例#1
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 internal static VkParameters ToVkParameters(MessageSendParams p)
 {
     return(new VkParameters
     {
         { "user_id", p.UserId },
         { "domain", p.Domain },
         { "chat_id", p.ChatId },
         { "user_ids", p.UserIds },
         { "message", HttpUtility.UrlEncode(p.Message) },
         { "guid", p.Guid },
         { "lat", p.Lat },
         { "long", p.Longitude },
         { "attachment", p.Attachment },
         { "forward_messages", p.ForwardMessages },
         { "sticker_id", p.StickerId }
     });
 }
示例#2
0
 /// <summary>
 /// Привести к типу VkParameters.
 /// </summary>
 /// <param name="p">Параметры.</param>
 /// <returns></returns>
 internal static VkParameters ToVkParameters(MessageSendParams p)
 {
     return new VkParameters
     {
         { "user_id", p.UserId },
         { "domain", p.Domain },
         { "chat_id", p.ChatId },
         { "user_ids", p.UserIds },
         { "message", HttpUtility.UrlEncode(p.Message) },
         { "guid", p.Guid },
         { "lat", p.Lat },
         { "long", p.Longitude },
         { "attachment", p.Attachment },
         { "forward_messages", p.ForwardMessages },
         { "sticker_id", p.StickerId }
     };
 }