Class History
A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways.
Inheritance
System.Object
History
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Gmail.v1.Data
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class History : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
The mailbox sequence ID.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.UInt64> |
LabelsAdded
Labels added to messages in this history record.
Declaration
[JsonProperty("labelsAdded")]
public virtual IList<HistoryLabelAdded> LabelsAdded { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<HistoryLabelAdded> |
LabelsRemoved
Labels removed from messages in this history record.
Declaration
[JsonProperty("labelsRemoved")]
public virtual IList<HistoryLabelRemoved> LabelsRemoved { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<HistoryLabelRemoved> |
Messages
List of messages changed in this history record. The fields for specific change types, such as messagesAdded may duplicate messages in this field. We recommend using the specific change-type fields instead of this.
Declaration
[JsonProperty("messages")]
public virtual IList<Message> Messages { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<Message> |
MessagesAdded
Messages added to the mailbox in this history record.
Declaration
[JsonProperty("messagesAdded")]
public virtual IList<HistoryMessageAdded> MessagesAdded { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<HistoryMessageAdded> |
MessagesDeleted
Messages deleted (not Trashed) from the mailbox in this history record.
Declaration
[JsonProperty("messagesDeleted")]
public virtual IList<HistoryMessageDeleted> MessagesDeleted { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<HistoryMessageDeleted> |