public class ExportMessage extends Object
The ExportMessage
is part of the high level API for bulk exports of
real estate data.
Modifier and Type | Class and Description |
---|---|
static class |
ExportMessage.Code
Supported message codes.
|
static class |
ExportMessage.Level
Supported message levels.
|
Modifier and Type | Method and Description |
---|---|
ExportMessage.Code |
getCode()
Returns message code.
|
String |
getContactId()
Returns the contact ID, that this message is assigned to.
|
ExportMessage.Level |
getLevel()
Returns message level.
|
String |
getMessage()
Returns message text.
|
String |
getObjectId()
Returns the real estate ID, that this message is assigned to.
|
boolean |
isError()
Checks, if the message is an error.
|
boolean |
isGeneral()
Checks, if the message is assigned to a certain object.
|
boolean |
isNotice()
Checks, if the message is a notice.
|
boolean |
isWarning()
Checks, if the message is a warning.
|
static ExportMessage |
newContactMessage(String contactId,
ExportMessage.Code code,
String message)
Creates a message for a contact person.
|
static ExportMessage |
newGeneralMessage(String message,
ExportMessage.Code code)
Creates a general message.
|
static ExportMessage |
newObjectMessage(String objectId,
ExportMessage.Code code,
String message)
Creates a message for a real estate.
|
public ExportMessage.Code getCode()
public String getContactId()
public ExportMessage.Level getLevel()
public String getMessage()
public String getObjectId()
public boolean isError()
public boolean isGeneral()
public boolean isNotice()
public boolean isWarning()
public static ExportMessage newContactMessage(String contactId, ExportMessage.Code code, String message)
contactId
- contact IDcode
- message codemessage
- message textpublic static ExportMessage newGeneralMessage(String message, ExportMessage.Code code)
code
- message codemessage
- message textpublic static ExportMessage newObjectMessage(String objectId, ExportMessage.Code code, String message)
objectId
- real estate IDcode
- message codemessage
- message textCopyright © 2014 OpenEstate. All rights reserved.