MBMessage class

This object represents a message from MBurger.

Constructors

MBMessage({required int id, required String title, required String messageDescription, required MBMessageType messageType, MBInAppMessage? inAppMessage, MBPushMessage? pushMessage, required DateTime createdAt, DateTime? startDate, DateTime? endDate, required bool automationIsOn, required int sendAfterDays, required int repeatTimes, dynamic triggers})
Initializes a message with the parameters passed.
MBMessage.fromDictionary(Map<String, dynamic> dictionary)
Initializes a message with the dictionary returned by the APIs.
factory

Properties

automationIsOn bool
If automation is on for this message.
final
createdAt DateTime
The creation date of the message.
final
endDate DateTime?
The end date of the message.
final
hashCode int
The hash code for this object.
no setterinherited
id int
The id of the message.
final
inAppMessage MBInAppMessage?
If the type of the message is in-app message, this is the in app message connected to the message.
final
messageDescription String
The description of the message.
final
messageType MBMessageType
The type of message.
final
pushMessage MBPushMessage?
If the type of the message is push, this is the push message connected to the message.
final
repeatTimes int
The number of times this message needs to be repeated.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendAfterDays int
The number of days to wait to show the message.
getter/setter pair
startDate DateTime?
The start date of the message.
final
title String
The title of the message.
final
triggers ↔ dynamic
The triggers for the messages.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited