Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alyosha authored and james-lawrence committed May 8, 2019
1 parent da5d491 commit e84d280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type ImageBlockElement struct {
AltText string `json:"alt_text"`
}

// elementType returns the type of the Element
func (s ImageBlockElement) elementType() MessageElementType {
return s.Type
}
Expand Down Expand Up @@ -127,6 +128,7 @@ type SelectBlockElement struct {
Confirm *ConfirmationBlockObject `json:"confirm,omitempty"`
}

// elementType returns the type of the Element
func (s SelectBlockElement) elementType() MessageElementType {
return MessageElementType(s.Type)
}
Expand Down Expand Up @@ -171,6 +173,7 @@ type OverflowBlockElement struct {
Confirm *ConfirmationBlockObject `json:"confirm,omitempty"`
}

// elementType returns the type of the Element
func (s OverflowBlockElement) elementType() MessageElementType {
return s.Type
}
Expand All @@ -197,6 +200,7 @@ type DatePickerBlockElement struct {
Confirm *ConfirmationBlockObject `json:"confirm,omitempty"`
}

// elementType returns the type of the Element
func (s DatePickerBlockElement) elementType() MessageElementType {
return s.Type
}
Expand Down

0 comments on commit e84d280

Please sign in to comment.