29 lines
803 B
Vala
29 lines
803 B
Vala
/* Copyright 2011-2013 Yorba Foundation
|
|
*
|
|
* This software is licensed under the GNU Lesser General Public License
|
|
* (version 2.1 or later). See the COPYING file in this distribution.
|
|
*/
|
|
|
|
/**
|
|
* See [[http://tools.ietf.org/html/rfc3501#section-6.3.10]]
|
|
*
|
|
* @see StatusData
|
|
*/
|
|
|
|
public class Geary.Imap.StatusCommand : Command {
|
|
public const string NAME = "status";
|
|
|
|
public StatusCommand(MailboxSpecifier mailbox, StatusDataType[] data_items) {
|
|
base (NAME);
|
|
|
|
add(mailbox.to_parameter());
|
|
|
|
assert(data_items.length > 0);
|
|
ListParameter data_item_list = new ListParameter(this);
|
|
foreach (StatusDataType data_item in data_items)
|
|
data_item_list.add(data_item.to_parameter());
|
|
|
|
add(data_item_list);
|
|
}
|
|
}
|
|
|