WIP
This commit is contained in:
@@ -46,8 +46,28 @@ namespace LineMessaging
|
||||
public ActionType Type => ActionType.Uri;
|
||||
[JsonProperty("label")]
|
||||
public string Label { get; set; }
|
||||
private string _uri;
|
||||
|
||||
[JsonProperty("uri")]
|
||||
public string Uri { get; set; }
|
||||
public string Uri
|
||||
{
|
||||
get { return _uri; }
|
||||
set {
|
||||
|
||||
if (value.IndexOf("?") == -1)
|
||||
{
|
||||
value += "?openExternalBrowser=1";
|
||||
}
|
||||
else
|
||||
{
|
||||
value += "&openExternalBrowser=1";
|
||||
}
|
||||
|
||||
_uri = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class DatetimepickerAction : ILineAction
|
||||
|
||||
@@ -3,6 +3,7 @@ using Newtonsoft.Json.Converters;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
@@ -108,11 +109,16 @@ namespace LineMessaging
|
||||
}
|
||||
public class LineFlexButton : ILineFlexObject
|
||||
{
|
||||
public LineFlexButton()
|
||||
{
|
||||
Height = FlexObjectSize.md;
|
||||
}
|
||||
public FlexObjectType Type => FlexObjectType.Button;
|
||||
[JsonRequired]
|
||||
public ILineAction Action { get; set; }
|
||||
public FlexObjectButtonStype Style { get; set; }
|
||||
//public FlexObjectSize Size { get; set; }
|
||||
public FlexObjectSize Height { get; set; }
|
||||
}
|
||||
public class LineFlexImage : ILineFlexObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user