Table of Contents

Class FlexImage

Namespace
Line.OpenApi.Messaging.Generated.Api.Models
Assembly
Line.OpenApi.Messaging.dll
public class FlexImage : FlexComponent, IAdditionalDataHolder, IParsable
Inheritance
FlexImage
Implements
IAdditionalDataHolder
IParsable
Inherited Members

Constructors

FlexImage()

Instantiates a new FlexImage and sets the default values.

public FlexImage()

Properties

Action

Action

public ActionObject? Action { get; set; }

Property Value

ActionObject

Align

Alignment style in horizontal direction.

public FlexImage_align? Align { get; set; }

Property Value

FlexImage_align?

Animated

When this is true, an animated image (APNG) plays.You can specify a value of true up to 10 images in a single message.You can't send messages that exceed this limit.This is false by default.Animated images larger than 300 KB aren't played back.

public bool? Animated { get; set; }

Property Value

bool?

AspectMode

The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match.

public FlexImage_aspectMode? AspectMode { get; set; }

Property Value

FlexImage_aspectMode?

AspectRatio

Aspect ratio of the image.{width}:{height} format.Specify the value of {width} and {height} in the range from 1 to 100000.However, you cannot set {height} to a value that is more than three times the value of {width}.The default value is 1:1.

public string? AspectRatio { get; set; }

Property Value

string

BackgroundColor

Background color of the image. Use a hexadecimal color code.

public string? BackgroundColor { get; set; }

Property Value

string

Flex

The ratio of the width or height of this component within the parent box.

public int? Flex { get; set; }

Property Value

int?

Gravity

Alignment style in vertical direction.

public FlexImage_gravity? Gravity { get; set; }

Property Value

FlexImage_gravity?

Margin

The minimum amount of space to include before this component in its parent container.

public string? Margin { get; set; }

Property Value

string

OffsetBottom

Offset.

public string? OffsetBottom { get; set; }

Property Value

string

OffsetEnd

Offset.

public string? OffsetEnd { get; set; }

Property Value

string

OffsetStart

Offset.

public string? OffsetStart { get; set; }

Property Value

string

OffsetTop

Offset.

public string? OffsetTop { get; set; }

Property Value

string

Position

Reference for offsetTop, offsetBottom, offsetStart, and offsetEnd. Specify one of the following values:relative: Use the previous box as reference.absolute: Use the top left of parent element as reference. The default value is relative.

public FlexImage_position? Position { get; set; }

Property Value

FlexImage_position?

Size

The maximum image width. This is md by default.

public string? Size { get; set; }

Property Value

string

Url

Image URL (Max character limit: 2000)Protocol: HTTPS (TLS 1.2 or later)Image format: JPEG or PNGMaximum image size: 1024×1024 pixelsMaximum file size: 10 MB (300 KB when the animated property is true)

public string? Url { get; set; }

Property Value

string

Methods

CreateFromDiscriminatorValue(IParseNode)

Creates a new instance of the appropriate class based on discriminator value

public static FlexImage CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

The parse node to use to read the discriminator value and create the object

Returns

FlexImage

A FlexImage

GetFieldDeserializers()

The deserialization information for the current model

public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()

Returns

IDictionary<string, Action<IParseNode>>

A IDictionary<string, Action<IParseNode>>

Serialize(ISerializationWriter)

Serializes information the current object

public override void Serialize(ISerializationWriter writer)

Parameters

writer ISerializationWriter

Serialization writer to use to serialize this model