Campaign

Campaign: class implements CampaignInterface

Constructors

this
this(string title, UUID owner)

constructor for a new campaign

this
this(UUID id)

Constructor for an existing campaign

Members

Properties

comments
Comment comments [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
comments
Comment[UUID] comments [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
createdAt
SysTime createdAt [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
donations
Donation[UUID] donations [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
donations
Donation donations [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
goals
Goal[UUID] goals [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
goals
Goal goals [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
id
UUID id [@property getter]

function id (): returns UUID @property getter

launchedAt
SysTime launchedAt [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
overview
string overview [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
overview
string overview [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
ownerID
UUID ownerID [@property getter]

@property ownerID (): returns UUID @property getter

raised
string raised [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
raised
string raised [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
summary
string summary [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
summary
string summary [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
supporters
User[UUID] supporters [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
supporters
User supporters [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
title
string title [@property getter]

@property title (): returns string @property getter

title
string title [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
updates
Update[UUID] updates [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
updates
Update updates [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From CampaignInterface

id
UUID id [@property getter]

id(): UUID @property

ownerID
UUID ownerID [@property getter]
Undocumented in source.
title
string title [@property getter]
Undocumented in source.
title
string title [@property setter]
Undocumented in source.
summary
string summary [@property getter]
Undocumented in source.
summary
string summary [@property setter]
Undocumented in source.
overview
string overview [@property getter]
Undocumented in source.
overview
string overview [@property setter]
Undocumented in source.
goals
Goal[UUID] goals [@property getter]
Undocumented in source.
goals
Goal goals [@property setter]
Undocumented in source.
raised
string raised [@property getter]
Undocumented in source.
raised
string raised [@property setter]
Undocumented in source.
supporters
User[UUID] supporters [@property getter]
Undocumented in source.
supporters
User supporters [@property setter]
Undocumented in source.
donations
Donation[UUID] donations [@property getter]
Undocumented in source.
donations
Donation donations [@property setter]
Undocumented in source.
updates
Update[UUID] updates [@property getter]
Undocumented in source.
updates
Update updates [@property setter]
Undocumented in source.
comments
Comment[UUID] comments [@property getter]
Undocumented in source.
comments
Comment comments [@property setter]
Undocumented in source.
createdAt
SysTime createdAt [@property getter]
Undocumented in source.
launchedAt
SysTime launchedAt [@property getter]
Undocumented in source.

Examples

auto owner = sha1UUID("owner", sha1UUID("namespace"));
auto campaign = new Campaign("Amazing New Campaign", owner);
assert(is(typeof(campaign.id()) == UUID));
assert(is(typeof(campaign.ownerID()) == UUID));
assert(is(typeof(campaign.title()) == string));
assert(is(typeof(campaign.createdAt()) == SysTime));

Meta