// NewOfferActivity returns a new 'Offer' activity.
NewOfferActivity returns a new 'Offer' activity.
// NewOfferActivity returns a new ' Offer ' activity .
func NewOfferActivity(obj *ObjectProperty, opts ...Opt) *ActivityType {
	options := NewOptions(opts...)
	return &ActivityType{
		ObjectType: NewObject(
			WithContext(getContexts(options, ContextActivityStreams)...),
			WithID(options.ID),
			WithType(TypeOffer),
			WithTo(options.To...),
			WithStartTime(options.StartTime),
			WithEndTime(options.EndTime),
		),
		activity: &activityType{
			Actor:  NewURLProperty(options.Actor),
			Object: obj,
			Target: options.Target,
		},
	}
}
func NewOfferActivity ( obj * ObjectProperty , opts ... Opt ) * ActivityType { options := NewOptions ( opts ... ) return & ActivityType { ObjectType : NewObject ( WithContext ( getContexts ( options , ContextActivityStreams ) ... ) , WithID ( options . ID ) , WithType ( TypeOffer ) , WithTo ( options . To ... ) , WithStartTime ( options . StartTime ) , WithEndTime ( options . EndTime ) , ) , activity : & activityType { Actor : NewURLProperty ( options . Actor ) , Object : obj , Target : options . Target , } , } }
NewOfferActivity returns a new 'Offer' activity.
NewOfferActivity returns a new ' Offer ' activity .