Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="area">
 /// Defined tappable area
 /// </param>
 /// <param name="text">
 /// Message to send
 /// Max: 400 characters
 /// </param>
 /// <param name="label">
 /// Label for the action. Spoken when the accessibility feature is enabled on the client device.
 /// Max: 50 characters
 /// Supported on LINE iOS version 8.2.0 and later.
 /// </param>
 public MessageImagemapAction(ImagemapArea area, string text, string label = null)
 {
     Area  = area;
     Text  = text.Substring(0, Math.Min(text.Length, 400));
     Label = label?.Substring(0, Math.Min(label.Length, 50));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="area">
 /// Defined tappable area
 /// </param>
 /// <param name="linkUri">
 /// Label for the action. Spoken when the accessibility feature is enabled on the client device.
 /// Max: 50 characters
 /// Supported on LINE iOS version 8.2.0 and later.
 /// </param>
 /// <param name="label">
 /// Label for the action. Spoken when the accessibility feature is enabled on the client device.
 /// Max: 50 characters
 /// Supported on LINE iOS version 8.2.0 and later.
 /// </param>
 public UriImagemapAction(ImagemapArea area, string linkUri, string label = null)
 {
     Area    = area;
     LinkUri = linkUri;
     Label   = label?.Substring(Math.Min(label.Length, 50));
 }
 public MessageImagemapAction(ImagemapArea area, string text)
 {
     Area = area;
     Text = text.Substring(0, Math.Min(text.Length, 400));
 }