AbcComponentsHelper 1.0.0
dotnet add package AbcComponentsHelper --version 1.0.0
NuGet\Install-Package AbcComponentsHelper -Version 1.0.0
<PackageReference Include="AbcComponentsHelper" Version="1.0.0" />
paket add AbcComponentsHelper --version 1.0.0
#r "nuget: AbcComponentsHelper, 1.0.0"
// Install AbcComponentsHelper as a Cake Addin #addin nuget:?package=AbcComponentsHelper&version=1.0.0 // Install AbcComponentsHelper as a Cake Tool #tool nuget:?package=AbcComponentsHelper&version=1.0.0
Apple Business chat Components Helper
Components of ABC channel Nuget Package:
https://www.nuget.org/packages/AbcComponentsHelper/
To install the package:
PM> Install-Package AbcComponentsHelper
This library is implemented for the following Messaging Channels:
- Apple Business Chat
Using Examples:
PS: Almost all these examples accepts an extra/optional argument that sets the order or style of the element.
PS2: Almost all these examples that uses a collection also accepts to be passed as params[].
1. Properties of a listpicker
Channels: Apple Business Chat
- BaseMessage
- InteractiveData: (Obligatory)
- Data : (Obligatory)
- Sections: (Obligatory)
- MultipleSelection
- Items(Obligatory)
- Image
- ReceivedMessage
- ReplyMessage
2. Sending a listPicker
Example:
First of all, you'll create a array of items(or pass items as params[])
var items = new List<ListPickerItem>();
//Defining Items
items.Add(new ListPickerItem("style", "itemTitle", "imageIdentifier", order, "itemIdentifier"));
Then you'll create the array of images(if there's any image):
var imageArray = new List<Image>();
//Defining Items
imageArray.Add(new Image("ImageIdentifier", Base64Image));
or
imageArray.Add(new Image("ImageIdentifier", byte[] image));
Then you'll create receveid message item:
var receivedMessage = new ReceivedMessage("style", "Title", "Subtitle", "ImageIdentifier");
Finally, creating listpicker:
var sections = new List<Section>();
sections.Add(new Section(items.ToArray()));
var listPickerDocument = new ListPickerDocument(
new InteractiveData(
new Data(sections),
receivedMessage));
Another way of create a listpicker:
var items = new List<Items>();
items.Add(new Items("ItemTitle", "ItemImageIdentifier", "itemImage", order));
items.Add(new Items("ItemTitle2", "ItemImageIdentifier2", "itemImage2", order+1));
var listPicker = new ListPickerDocument("ReceveidMessageTitle", "ReceveidMessageSubTitle", items, multipleSelection));
3. Properties of a TimePicker
- BaseMessage
- TimePickerInteractiveData: (Obligatory)
- TimePickerData : (Obligatory)
- EventItem: (Obligatory)
- Location
- TimeSlots(Obligatory)
- Image
- ReceivedMessage
- ReplyMessage
4. Sending a Time Picker
You'll have to initialize receivedMessage as you did in listpicker(replyMessage is optional in both cases), but using TimePickerReceivedMessage and TimePickerReplyMessage.
But instead of a collection of items you'll have a collection of TimeSlots, as you can see down bellow:
var timeSlots = new List<TimeSlots>();
timeSlots.Add(new TimeSlots(duration,
time.ToString($"yyyy-MM-ddTHH:mm{timezonestring}"),
timeIdentifier));
Then you can create a TimePicker:
var timePickerDocument = new TimePickerDocument(
new TimePickerInteractiveData(
new TimePickerData("1.0",
new Event(string.Empty, "Agendamento", timeSlots)),
receivedMessage));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,597 | 6/19/2019 |