summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go
blob: 61683c0710de2ef1c2cc9868aa50a1fe368bc303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Code generated by astool. DO NOT EDIT.

package streams

import (
	typeannounceapproval "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
	typecanannounce "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
	typecanlike "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
	typecanreply "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
	typeinteractionpolicy "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
	typelikeapproval "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
	typereplyapproval "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
	vocab "github.com/superseriousbusiness/activity/streams/vocab"
)

// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends
// from AnnounceApproval. Note that it returns false if the types are the
// same; see the "IsOrExtends" variant instead.
func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool {
	return typeannounceapproval.AnnounceApprovalIsExtendedBy(other)
}

// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from
// CanAnnounce. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanAnnounceIsExtendedBy(other vocab.Type) bool {
	return typecanannounce.CanAnnounceIsExtendedBy(other)
}

// GoToSocialCanLikeIsExtendedBy returns true if the other's type extends from
// CanLike. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool {
	return typecanlike.CanLikeIsExtendedBy(other)
}

// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from
// CanReply. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool {
	return typecanreply.CanReplyIsExtendedBy(other)
}

// GoToSocialInteractionPolicyIsExtendedBy returns true if the other's type
// extends from InteractionPolicy. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool {
	return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other)
}

// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends
// from LikeApproval. Note that it returns false if the types are the same;
// see the "IsOrExtends" variant instead.
func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool {
	return typelikeapproval.LikeApprovalIsExtendedBy(other)
}

// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends
// from ReplyApproval. Note that it returns false if the types are the same;
// see the "IsOrExtends" variant instead.
func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool {
	return typereplyapproval.ReplyApprovalIsExtendedBy(other)
}