summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/domainblock.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gtsmodel/domainblock.go')
-rw-r--r--internal/gtsmodel/domainblock.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/internal/gtsmodel/domainblock.go b/internal/gtsmodel/domainblock.go
index 4e0b3ca65..e99fea301 100644
--- a/internal/gtsmodel/domainblock.go
+++ b/internal/gtsmodel/domainblock.go
@@ -45,6 +45,10 @@ func (d *DomainBlock) GetUpdatedAt() time.Time {
return d.UpdatedAt
}
+func (d *DomainBlock) SetUpdatedAt(i time.Time) {
+ d.UpdatedAt = i
+}
+
func (d *DomainBlock) GetDomain() string {
return d.Domain
}
@@ -53,26 +57,50 @@ func (d *DomainBlock) GetCreatedByAccountID() string {
return d.CreatedByAccountID
}
+func (d *DomainBlock) SetCreatedByAccountID(i string) {
+ d.CreatedByAccountID = i
+}
+
func (d *DomainBlock) GetCreatedByAccount() *Account {
return d.CreatedByAccount
}
+func (d *DomainBlock) SetCreatedByAccount(i *Account) {
+ d.CreatedByAccount = i
+}
+
func (d *DomainBlock) GetPrivateComment() string {
return d.PrivateComment
}
+func (d *DomainBlock) SetPrivateComment(i string) {
+ d.PrivateComment = i
+}
+
func (d *DomainBlock) GetPublicComment() string {
return d.PublicComment
}
+func (d *DomainBlock) SetPublicComment(i string) {
+ d.PublicComment = i
+}
+
func (d *DomainBlock) GetObfuscate() *bool {
return d.Obfuscate
}
+func (d *DomainBlock) SetObfuscate(i *bool) {
+ d.Obfuscate = i
+}
+
func (d *DomainBlock) GetSubscriptionID() string {
return d.SubscriptionID
}
+func (d *DomainBlock) SetSubscriptionID(i string) {
+ d.SubscriptionID = i
+}
+
func (d *DomainBlock) GetType() DomainPermissionType {
return DomainPermissionBlock
}