SoundName set notification sound
(sound string)
| 203 | |
| 204 | // SoundName set notification sound |
| 205 | func (m *Message) SoundName(sound string) *Message { |
| 206 | if len(sound) > 0 && sound != "0" { |
| 207 | m.Sound = &pb.Sound{Name: sound} |
| 208 | } |
| 209 | return m |
| 210 | } |
| 211 | |
| 212 | // SetPriority set notification priority |
| 213 | func (m *Message) SetPriority(priority int) *Message { |
no outgoing calls
no test coverage detected