public virtual Task PushAudioAsync(string to, string originalContentUrl, long duration, bool notificationDisabled = false, QuickReply quickReply = null, MessageSender messageSender = null) { return(PushMessageAsync(to, new ISendMessage[] { new AudioMessage(originalContentUrl, duration, quickReply, messageSender) }, notificationDisabled)); }
public virtual Task PushLocationAsync(string to, string title, string address, decimal latitude, decimal longitude, bool notificationDisabled = false, QuickReply quickReply = null, MessageSender messageSender = null) { return(PushMessageAsync(to, new ISendMessage[] { new LocationMessage(title, address, latitude, longitude, quickReply, messageSender) }, notificationDisabled)); }
public virtual Task PushStickerAsync(string to, string packageId, string stickerId, bool notificationDisabled = false, QuickReply quickReply = null, MessageSender messageSender = null) { return(PushMessageAsync(to, new ISendMessage[] { new StickerMessage(packageId, stickerId, quickReply, messageSender) }, notificationDisabled)); }
public virtual Task PushVideoAsync(string to, string originalContentUrl, string previewImageUrl, string trackingId, bool notificationDisabled = false, QuickReply quickReply = null, MessageSender messageSender = null) { return(PushMessageAsync(to, new ISendMessage[] { new VideoMessage(originalContentUrl, previewImageUrl, trackingId, quickReply, messageSender) }, notificationDisabled)); }
public virtual Task ReplyImageAsync(string replyToken, string originalContentUrl, string previewImageUrl, bool notificationDisabled = false, QuickReply quickReply = null, MessageSender messageSender = null) { return(ReplyMessageAsync(replyToken, new ISendMessage[] { new ImageMessage(originalContentUrl, previewImageUrl, quickReply, messageSender) }, notificationDisabled)); }
public virtual Task PushTextAsync(string to, string message, bool notificationDisabled = false, QuickReply quickReply = null, MessageSender messageSender = null) { return(PushMessageAsync(to, new ISendMessage[] { new TextMessage(message, quickReply, messageSender) }, notificationDisabled)); }
/// <summary> /// Constructor /// </summary> /// <param name="baseUrl"> /// Base URL of image (Max: 1000 characters) /// HTTPS /// </param> /// <param name="altText"> /// Alternative text /// Max: 400 characters /// </param> /// <param name="baseSize"> /// Width of base image (set to 1040px) /// Height of base image(set to the height that corresponds to a width of 1040px) /// </param> /// <param name="actions"> /// Action when tapped. /// Max: 50 /// </param> /// <param name="quickReply"> /// QuickReply /// </param> /// <param name="video"> /// Video to play on imagemap /// </param> public ImagemapMessage(string baseUrl, string altText, ImagemapSize baseSize, IList <IImagemapAction> actions, QuickReply quickReply = null, Video video = null, MessageSender messageSender = null) { BaseUrl = baseUrl; AltText = altText.Substring(0, Math.Min(altText.Length, 400));; BaseSize = baseSize; Actions = actions; QuickReply = quickReply; Video = video; Sender = messageSender; }
//public Emoji[] Emojis { get; set; } /// <summary> /// Constructor /// </summary> /// <param name="text"> /// Message text /// Max: 2000 characters /// </param> /// <param name="quickReply"> /// QuickReply /// </param> public TextMessage(string text, QuickReply quickReply = null, MessageSender messageSender = null) { Text = text.Substring(0, Math.Min(text.Length, 5000)); QuickReply = quickReply; Sender = messageSender; }
/// <summary> /// Constructor /// </summary> /// <param name="altText"> /// Alternative text. /// Max: 400 characters ///</param> /// <param name="template"> /// A Buttons, Confirm, Carousel, or Image Carousel object. /// </param> /// <param name="quickReply"> /// QuickRepy /// </param> public TemplateMessage(string altText, ITemplate template, QuickReply quickReply = null, MessageSender messageSender = null) { AltText = altText.Substring(0, Math.Min(altText.Length, 400)); Template = template; QuickReply = quickReply; Sender = messageSender; }
/// <summary> /// Constructor /// </summary> /// <param name="title"> /// Title /// Max: 100 characters /// </param> /// <param name="address"> /// Address /// Max: 100 characters /// </param> /// <param name="latitude"> /// Latitude /// </param> /// <param name="longitude"> /// Longitude /// </param> /// <param name="quickReply"> /// QuickReply /// </param> public LocationMessage(string title, string address, decimal latitude, decimal longitude, QuickReply quickReply = null, MessageSender messageSender = null) { Title = title.Substring(0, Math.Min(title.Length, 100)); Address = address.Substring(0, Math.Min(address.Length, 100)); Latitude = latitude; Longitude = longitude; QuickReply = quickReply; Sender = messageSender; }
/// <summary> /// Constructor /// </summary> /// <param name="altText"> /// Alternative text. /// Max: 400 characters ///</param> public FlexMessage(string altText, MessageSender messageSender = null) { AltText = altText.Substring(0, Math.Min(altText.Length, 400)); Sender = messageSender; }