This repository has been archived by the owner on Jul 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package model | ||
|
||
// ElectronicMessage describes the base properties of an electronic message. | ||
type ElectronicMessage struct { | ||
// NextMessage describes the message that will interrupt this one. -1 for no interrupt. | ||
NextMessage *int | ||
// IsInterrupt is set for interrupting messages. | ||
IsInterrupt *bool | ||
// ColorIndex for special colored headers. -1 for default. | ||
ColorIndex *int | ||
// LeftDisplay identifies the image for the left display. -1 for none. | ||
LeftDisplay *int | ||
// RightDisplay identifies the image for the right display. -1 for none. | ||
RightDisplay *int | ||
|
||
Title [LanguageCount]*string | ||
Sender [LanguageCount]*string | ||
Subject [LanguageCount]*string | ||
VerboseText [LanguageCount]*string | ||
TerseText [LanguageCount]*string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package model | ||
|
||
// ElectronicMessageType classifies the messages. | ||
type ElectronicMessageType string | ||
|
||
const ( | ||
// ElectronicMessageTypeMail is for wireless mails. | ||
ElectronicMessageTypeMail ElectronicMessageType = "mail" | ||
// ElectronicMessageTypeLog is for collected logs. | ||
ElectronicMessageTypeLog = "log" | ||
// ElectronicMessageTypeFragment is for downloaded fragments. | ||
ElectronicMessageTypeFragment = "fragment" | ||
) | ||
|
||
// ElectronicMessageTypes returns all known message types. | ||
func ElectronicMessageTypes() []ElectronicMessageType { | ||
return []ElectronicMessageType{ElectronicMessageTypeMail, ElectronicMessageTypeLog, ElectronicMessageTypeFragment} | ||
} |