{
    "type": "metaMail",
    "extends": "map",
    "definitions": {
        "delete": {
            "id": "delete_mail",
            "type": "function",
            "tags": [
                "method"
            ],
            "arguments": [
                {
                    "label": "mailId",
                    "type": "string"
                }
            ],
            "returnVariations": [
                "Unknown error: Unable to access to local computer",
                "read: No internet access.",
                1
            ],
            "returns": [
                "number",
                "string",
                "null"
            ]
        },
        "fetch": {
            "id": "fetch",
            "type": "function",
            "tags": [
                "method"
            ],
            "returnVariations": [
                "Unknown error: Unable to access to local computer",
                "fetch: No internet access."
            ],
            "returns": [
                {
                    "type": "list",
                    "valueType": "string"
                },
                "string"
            ]
        },
        "read": {
            "id": "read",
            "type": "function",
            "tags": [
                "method"
            ],
            "arguments": [
                {
                    "label": "mailId",
                    "type": "string"
                }
            ],
            "returnVariations": [
                "Unknown error: Unable to access to local computer",
                "fetch: No internet access.",
                "Mail not found"
            ],
            "returns": [
                "string",
                "null"
            ]
        },
        "send": {
            "id": "send",
            "type": "function",
            "tags": [
                "method"
            ],
            "arguments": [
                {
                    "label": "emailAddress",
                    "type": "string"
                },
                {
                    "label": "subject",
                    "type": "string"
                },
                {
                    "label": "message",
                    "type": "string"
                }
            ],
            "returnVariations": [
                "The mail could not be sent. Wait a moment before sending another email.",
                "Unknown error: Unable to access to local computer",
                "read: No internet access.",
                "read: No email account registered",
                "!PlayerUtils.SendMail",
                "!Database.GetMailAccount",
                "Mail not delivered",
                1
            ],
            "returns": [
                "string",
                "number",
                "null"
            ]
        }
    }
}
