Skip to main content

FB2MobileMessageComponent

Overview

  • Component that manages mobile messages.

Metadata

FieldValue
Kindcomponent
EnvironmentB2 - Simulation
Categorycomponents
ExtendsFB2Component
Requirerequire('Components.B2MobileMessageComponent')

Properties (11)

NameTypeDescription
ContactMapFB1MobileContactMapKey: target entity id; Value: whether owner has blocked target.
CurrentTimeTaskIdsFB1TimeTaskId[]
GlobalSentOnceMessageListFB1SentOnceMessageList
MessageCooltimeFB1MobileMessageCooltimeMapkey : owner id
MessageListFB1MobileMessageListMapkey : owner id
MessageListBySystemFB1MobileMessageListBySystemMapkey : owner id
PendingResponseReplyFB1ResponseReplyRequest[]
SendMessageHourinteger
SendMessageMinuteinteger
bSendMessageboolean
bSetMessageTimeboolean

Functions (59)

FunctionParametersReturnsDescription
AddContactInTargetId: FB1EntityIdbooleanAdds Contact.
CanReceiveMobilMessageInReceiver: FB1EntityIdbooleanReturns whether it can Receive Mobil Message.
CanSendMessageInSender: FB1EntityIdbooleanReturns whether it can Send Message.
ClearResponseTimerRefInPartnerId: FB1EntityId, InTimerId: FB1TimeTaskId-Clears Response Timer Ref.
ClearTimeTask--Clears Time Task.
FindMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InRelationshipData: FB1RelationshipData, bSendBySelf: boolean, OutIndex: integer, OutPoolId: stringbooleanFinds and returns Message.
FindSenderAndMessageOutIndex: integer, OutPoolId: stringFB1EntityIdFinds and returns Sender And Message.
ForceSendMessageBySelfInReceiverId: FB1EntityId, InPoolId: string-
GetCityMovePolicyMapInCityMoveDataPolicyType: EB1CityMoveDataPolicyTypetable<string, EB1CityMoveDataPolicy>Returns City Move Policy Map.
GetContactMap-FB1MobileContactMapReturns Contact Map.
GetCustomMobileMessagePoolCooltimeInCustomMobileMessagePoolId: stringintegerReturns Custom Mobile Message Pool Cooltime.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetMessageCooltime-FB1MobileMessageCooltimeMapReturns Message Cooltime.
GetMessageList-FB1MobileMessageListMapReturns Message List.
GetMessageListBySystem-FB1MobileMessageListBySystemMapReturns Message List By System.
GetNewMessageCount-integerReturns New Message Count.
HandleAppointmentInPartner: FB1EntityId, InAppointmentData: FB1AppointmentData-
HandleCustomPolicyCityMoveDataInCityMovedData: nil, InCityMoveDataPolicyType: EB1CityMoveDataPolicyType-
HandleWaitMessageInDeltaTime: number-
HasContactInTargetId: FB1EntityIdbooleanReturns whether it has Contact.
HasContactOrMessageHistoryInTargetId: FB1EntityIdbooleanReturns whether it has Contact Or Message History.
IgnoreLastReceivedMessageInSenderId: FB1EntityId, bSkipUpdateDataCache: boolean-
IsBlockingContactInTargetId: FB1EntityIdbooleanReturns whether Blocking Contact.
IsWaitingReplyInEntityId: FB1EntityIdbooleanReturns whether Waiting Reply.
OnChangeGrowthStepInPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStep-Callback invoked on Change Growth Step.
OnDayOfWeekChangedBefore: FDateTime, After: FDateTime-Callback invoked on Day Of Week Changed.
OnMessageIgnoredInIgnoringEntityId: FB1EntityId-Callback invoked on Message Ignored.
OnMessageReceivedInSender: FB1EntityId, InSenderSystem: string, InReceiver: FB1EntityId, InMessage: FB1MobileMessage-Callback invoked on Message Received.
OnMinuteChangedBefore: FDateTime, After: FDateTime-Callback invoked on Minute Changed.
OnRequestedMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InIndex: integer, InPoolId: string-Callback invoked on Requested Message.
Payload_IgnoreMessageInTargetEntityId: FB1EntityId-
Payload_RequestMessageInSenderId: FB1EntityId, InReceiverId: FB1EntityId, InIndex: integer, InPoolId: string-
Payload_SendMessageInPayloadTarget: FB1EntityId, InSenderId: FB1EntityId, InReceiverId: FB1EntityId, InMessage: FB1MobileMessage-
Payload_SendOverrideTimelineInTargetId: FB1EntityId, InTimeline: FB1Timeline, InDayOfWeek: EB1DayOfWeek-
RemoveContactInTargetId: FB1EntityIdbooleanRemoves Contact.
RemoveTimeTaskIdInTimeTaskId: FB1TimeTaskId-Removes Time Task Id.
SendCustomMessageContainsFormatTextInReceiver: FB1EntityId, InCustomMobileMessageId: string, InFormatText: string[]-For CustomMobileMessages that include FormatText such as {0}; used only when the System is the sender.
SendCustomMessagePlainTextInSender: FB1EntityId, InReceiver: FB1EntityId, InMessageHandle: string, InMobileMessageCustomResponse: FB1MobileMessageCustomResponse, InSenderSystemId: string, bNeedPhoneNumber: boolean-Sends Custom Message Plain Text.
SendMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InIndex: integer, InPoolId: string, bUseAutoResponse: boolean-Sends Message.
SendMessageBySelfInReceiver: FB1EntityId, InIndex: integer, InPoolId: string, InType: EB1MobileMessageSendType, InData: FB1AppointmentData-Sends Message By Self.
SendMessageResponseInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType-Sends Message Response.
SendMessageResponseByTimerInSender: FB1EntityId, InReceiver: FB1EntityId-Sends a message proactively (sender-initiated).
SendMessageResponseInternalInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType-Sends Message Response Internal.
SendMessageResponseInternal_CustomInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType-Sends Message Response Internal_Custom.
SendMessageResponseInternal_InvitationExpiredInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string-Sends Message Response Internal_Invitation Expired.
SendMessageResponseInternal_PoolInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType, InMessagePoolId: string-Sends Message Response Internal_Pool.
SendMessageResponseInternal_SendPoolInSender: FB1EntityId, InReceiver: FB1EntityId, InMessagePoolId: string, InType: EB1MobileMessageResponseType-Sends Message Response Internal_Send Pool.
SendMessageResponseReplyInReplyData: FB1ResponseReplyRequest-Self-Written Message
SendMessageResponseReplyInternalInReplyData: FB1ResponseReplyRequest-Sends Message Response Reply Internal.
SendMessageResponseReplyInternal_CustomInReplyData: FB1ResponseReplyRequest-Sends Message Response Reply Internal_Custom.
SendMessageResponseReplyInternal_InvitationExpiredInReplyData: FB1ResponseReplyRequest-Sends Message Response Reply Internal_Invitation Expired.
SendMessageResponseReplyInternal_PoolInReplyData: FB1ResponseReplyRequest, InMessagePoolId: string-Sends Message Response Reply Internal_Pool.
SendMessageResponseReplyInternal_SendPoolInReplyData: FB1ResponseReplyRequest, InMessagePoolId: string, InAnswerIndex: integer-Sends Message Response Reply Internal_Send Pool.
SendResponseTimeoutMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InTimeoutMessageId: string-Sends Response Timeout Message.
Send_S_OnWaitingMessageRevealedInMessageOwner: FB1EntityId, InPartner: FB1EntityId, InSenderSystem: string, bIsWait: boolean-
SetCheatResponseTypeInType: EB1MobileMessageResponseType?-Sets Cheat Response Type.
SetContactBlockedInTargetId: FB1EntityId, bBlock: booleanbooleanSets Contact Blocked.
ShouldUseScheduler-booleanReturns whether it should Use Scheduler.
TimelineSimulateOnlyTick--

Override points (44)

Implement these in Lua as FB2MobileMessageComponent.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_AddContactInTargetId: FB1EntityIdbooleanAdds Contact.
Override_CanReceiveMobilMessageInReceiver: FB1EntityIdbooleanReturns whether it can Receive Mobil Message.
Override_CanSendMessageInSender: FB1EntityIdbooleanReturns whether it can Send Message.
Override_ClearResponseTimerRefInPartnerId: FB1EntityId, InTimerId: FB1TimeTaskId-Clears Response Timer Ref.
Override_ClearTimeTask--Clears Time Task.
Override_ForceSendMessageBySelfInReceiverId: FB1EntityId, InPoolId: string-
Override_HandleAppointmentInPartnerId: FB1EntityId, InAppointmentData: FB1AppointmentData-
Override_HandleCustomPolicyCityMoveDataInCityMovedData: nil, InCityMoveDataPolicyType: EB1CityMoveDataPolicyType-
Override_HandleWaitMessageInDeltaTime: number-
Override_HasContactInTargetId: FB1EntityIdbooleanReturns whether it has Contact.
Override_HasContactOrMessageHistoryInTargetId: FB1EntityIdbooleanReturns whether it has Contact Or Message History.
Override_IgnoreLastReceivedMessageInSenderId: FB1EntityId, bSkipUpdateDataCache: boolean-
Override_OnChangeGrowthStepInPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStep-Callback invoked on Change Growth Step.
Override_OnDayOfWeekChangedBefore: FDateTime, After: FDateTime-Callback invoked on Day Of Week Changed.
Override_OnMessageIgnoredInIgnoringEntityId: FB1EntityId-Callback invoked on Message Ignored.
Override_OnMessageReceivedInSender: FB1EntityId, InSenderSystem: string, InReceiver: FB1EntityId, InMessage: FB1MobileMessage-Callback invoked on Message Received.
Override_OnMinuteChangedBefore: FDateTime, After: FDateTime-Callback invoked on Minute Changed.
Override_OnRequestedMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InIndex: integer, InPoolId: string-Callback invoked on Requested Message.
Override_Payload_IgnoreMessageInIgnoredEntityId: FB1EntityId-
Override_Payload_RequestMessageInSenderId: FB1EntityId, InReceiverId: FB1EntityId, InIndex: integer, InPoolId: string-
Override_Payload_SendMessageInPayloadTarget: FB1EntityId, InSenderId: FB1EntityId, InReceiverId: FB1EntityId, InMessage: FB1MobileMessage-
Override_Payload_SendOverrideTimelineInTargetId: FB1EntityId, InTimeline: FB1Timeline, InDayOfWeek: EB1DayOfWeek-
Override_RemoveContactInTargetId: FB1EntityIdbooleanRemoves Contact.
Override_RemoveTimeTaskIdInTimeTaskId: FB1TimeTaskId-Removes Time Task Id.
Override_SendCustomMessageContainsFormatTextInReceiver: FB1EntityId, InCustomMobileMessageId: string, InFormatText: string[]-For CustomMobileMessages that include FormatText such as {0}; used only when the System is the sender.
Override_SendCustomMessagePlainTextInSender: FB1EntityId, InReceiver: FB1EntityId, InMessageHandle: string, InMobileMessageCustomResponse: FB1MobileMessageCustomResponse, InSenderSystemId: string, bNeedPhoneNumber: boolean-Sends Custom Message Plain Text.
Override_SendMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InIndex: integer, InPoolId: string, bUseAutoResponse: boolean-Sends Message.
Override_SendMessageBySelfInReceiverId: FB1EntityId, InIndex: integer, InPoolId: string, InType: EB1MobileMessageSendType, InAppointmentData: FB1AppointmentData-Sends Message By Self.
Override_SendMessageResponseInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType-Sends Message Response.
Override_SendMessageResponseByTimerInSenderId: FB1EntityId, InReceiverId: FB1EntityId-Sends a message proactively (sender-initiated).
Override_SendMessageResponseInternalInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType-Sends Message Response Internal.
Override_SendMessageResponseInternal_CustomInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType-Sends Message Response Internal_Custom.
Override_SendMessageResponseInternal_InvitationExpiredInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string-Sends Message Response Internal_Invitation Expired.
Override_SendMessageResponseInternal_PoolInSender: FB1EntityId, InReceiver: FB1EntityId, InReceiverSystemId: string, InType: EB1MobileMessageResponseType, InMessagePoolId: string-Sends Message Response Internal_Pool.
Override_SendMessageResponseInternal_SendPoolInSender: FB1EntityId, InReceiver: FB1EntityId, InMessagePoolId: string, InType: EB1MobileMessageResponseType-Sends Message Response Internal_Send Pool.
Override_SendMessageResponseReplyInReplyData: FB1ResponseReplyRequest-Self-Written Message
Override_SendMessageResponseReplyInternalInReplyData: FB1ResponseReplyRequest-Sends Message Response Reply Internal.
Override_SendMessageResponseReplyInternal_CustomInReplyData: FB1ResponseReplyRequest-Sends Message Response Reply Internal_Custom.
Override_SendMessageResponseReplyInternal_InvitationExpiredInReplyData: FB1ResponseReplyRequest-Sends Message Response Reply Internal_Invitation Expired.
Override_SendMessageResponseReplyInternal_PoolInReplyData: FB1ResponseReplyRequest, InMessagePoolId: string-Sends Message Response Reply Internal_Pool.
Override_SendMessageResponseReplyInternal_SendPoolInReplyData: FB1ResponseReplyRequest, InMessagePoolId: string, InAnswerIndex: integer-Sends Message Response Reply Internal_Send Pool.
Override_SendResponseTimeoutMessageInSender: FB1EntityId, InReceiver: FB1EntityId, InTimeoutMessageId: string-Sends Response Timeout Message.
Override_Send_S_OnWaitingMessageRevealedInMessageOwner: FB1EntityId, InPartner: FB1EntityId, InSenderSystem: string, bIsWait: boolean-
Override_TimelineSimulateOnlyTick--