Changes
2 changed files (+27/-0)
-
-
@@ -32,3 +32,10 @@ func (i *InboxStream) Append(o ObjectOrLink) error {i.TotalItems++ return nil } func (i InboxStream) GetID() ObjectID { return i.ID } func (i InboxStream)GetType() ActivityVocabularyType { return i.Type }
-
-
-
@@ -9,3 +9,23 @@ type (// Outbox is a type alias for an Ordered Collection Outbox OrderedCollection ) // OutboxNew initializes a new Outbox func OutboxNew() *Outbox { id := ObjectID("outbox") i := Outbox{ID: id, Type: OrderedCollectionType} i.Name = make(NaturalLanguageValue) i.Content = make(NaturalLanguageValue) i.Summary = make(NaturalLanguageValue) i.TotalItems = 0 return &i } func (o OutboxStream) GetID() ObjectID { return o.ID } func (o OutboxStream)GetType() ActivityVocabularyType { return o.Type }
-