AbcComponentsHelper 1.0.0

.NET Standard 2.0
Install-Package AbcComponentsHelper -Version 1.0.0
dotnet add package AbcComponentsHelper --version 1.0.0
<PackageReference Include="AbcComponentsHelper" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AbcComponentsHelper --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AbcComponentsHelper, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

alt text

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

alt text

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
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .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,148 6/19/2019