public class OutlookCategory extends Object
Represents a category by which a user can group Outlook items such as messages and events. The user defines categories in a master list, and can apply one or more of these user-defined categories to an item. https://docs.microsoft.com/en-us/graph/api/resources/outlookcategory?view=graph-rest-1.0
Constructor and Description |
---|
OutlookCategory()
Initializes a new instance of the
OutlookCategory class. |
OutlookCategory(String displayName,
int preset)
Initializes a new instance of the
OutlookCategory class. |
OutlookCategory(String itemId,
String displayName,
int preset)
Initializes a new instance of the
OutlookCategory class. |
Modifier and Type | Method and Description |
---|---|
String |
getColor()
String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors.
|
String |
getDisplayName()
A unique name that identifies a category in the user's mailbox.
|
String |
getId()
Category identifier
|
int |
getPreset()
A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors.
|
void |
setColor(String value)
String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors.
|
void |
setDisplayName(String value)
A unique name that identifies a category in the user's mailbox.
|
void |
setId(String value)
Category identifier
|
void |
setPreset(int value)
A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors.
|
String |
toString()
Returns a string that represents the current object.
|
public OutlookCategory()
Initializes a new instance of the OutlookCategory
class.
public OutlookCategory(String displayName, int preset)
Initializes a new instance of the OutlookCategory
class.
displayName
- A unique name that identifies a category in the user's mailbox.preset
- pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colorspublic OutlookCategory(String itemId, String displayName, int preset)
Initializes a new instance of the OutlookCategory
class.
itemId
- Item iddisplayName
- A unique name that identifies a category in the user's mailbox.preset
- pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colorspublic final String getId()
Category identifier
public final void setId(String value)
Category identifier
public final String getDisplayName()
A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed.
public final void setDisplayName(String value)
A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed.
public final String getColor()
String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. The possible values for color are pre-set constants such as None, preset0 and preset1. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.
public final void setColor(String value)
String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. The possible values for color are pre-set constants such as None, preset0 and preset1. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.
public final int getPreset()
A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.
public final void setPreset(int value)
A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.