list.go 756 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package publish
  2. // @snippet_begin(PublishList)
  3. type List struct {
  4. PageNumber int
  5. Position int
  6. ListDeleted bool
  7. ListUpdated bool
  8. }
  9. // @snippet_end
  10. func (this List) GetPageNumber() int {
  11. return this.PageNumber
  12. }
  13. func (this *List) SetPageNumber(pageNumber int) {
  14. this.PageNumber = pageNumber
  15. }
  16. func (this List) GetPosition() int {
  17. return this.Position
  18. }
  19. func (this *List) SetPosition(position int) {
  20. this.Position = position
  21. }
  22. func (this List) GetListDeleted() bool {
  23. return this.ListDeleted
  24. }
  25. func (this *List) SetListDeleted(listDeleted bool) {
  26. this.ListDeleted = listDeleted
  27. }
  28. func (this List) GetListUpdated() bool {
  29. return this.ListUpdated
  30. }
  31. func (this *List) SetListUpdated(listUpdated bool) {
  32. this.ListUpdated = listUpdated
  33. }