SetNillableDownloads sets the "downloads" field if the given value is not nil.
(i *int)
| 107 | |
| 108 | // SetNillableDownloads sets the "downloads" field if the given value is not nil. |
| 109 | func (su *ShareUpdate) SetNillableDownloads(i *int) *ShareUpdate { |
| 110 | if i != nil { |
| 111 | su.SetDownloads(*i) |
| 112 | } |
| 113 | return su |
| 114 | } |
| 115 | |
| 116 | // AddDownloads adds i to the "downloads" field. |
| 117 | func (su *ShareUpdate) AddDownloads(i int) *ShareUpdate { |
nothing calls this directly
no test coverage detected