activity.go (2252B)
1 package pub 2 3 import ( 4 "github.com/superseriousbusiness/activity/streams/vocab" 5 ) 6 7 // Activity represents any ActivityStreams Activity type. 8 // 9 // The Activity types provided in the streams package implement this. 10 type Activity interface { 11 // Activity is also a vocab.Type 12 vocab.Type 13 // GetActivityStreamsActor returns the "actor" property if it exists, and 14 // nil otherwise. 15 GetActivityStreamsActor() vocab.ActivityStreamsActorProperty 16 // GetActivityStreamsAudience returns the "audience" property if it 17 // exists, and nil otherwise. 18 GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty 19 // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil 20 // otherwise. 21 GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty 22 // GetActivityStreamsBto returns the "bto" property if it exists, and nil 23 // otherwise. 24 GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty 25 // GetActivityStreamsCc returns the "cc" property if it exists, and nil 26 // otherwise. 27 GetActivityStreamsCc() vocab.ActivityStreamsCcProperty 28 // GetActivityStreamsTo returns the "to" property if it exists, and nil 29 // otherwise. 30 GetActivityStreamsTo() vocab.ActivityStreamsToProperty 31 // GetActivityStreamsAttributedTo returns the "attributedTo" property if 32 // it exists, and nil otherwise. 33 GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty 34 // GetActivityStreamsObject returns the "object" property if it exists, 35 // and nil otherwise. 36 GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty 37 // SetActivityStreamsActor sets the "actor" property. 38 SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) 39 // SetActivityStreamsObject sets the "object" property. 40 SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) 41 // SetActivityStreamsTo sets the "to" property. 42 SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) 43 // SetActivityStreamsBto sets the "bto" property. 44 SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) 45 // SetActivityStreamsBcc sets the "bcc" property. 46 SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) 47 // SetActivityStreamsAttributedTo sets the "attributedTo" property. 48 SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) 49 }