SetNotifyInfo sets the communicator's notify info with communicator, notify name, app name, server name, and container name
(comm *Communicator, notify string, app string, server string, container string)
| 17 | |
| 18 | // SetNotifyInfo sets the communicator's notify info with communicator, notify name, app name, server name, and container name |
| 19 | func (n *NotifyHelper) SetNotifyInfo(comm *Communicator, notify string, app string, server string, container string) { |
| 20 | n.comm = comm |
| 21 | n.tn = new(notifyf.Notify) |
| 22 | comm.StringToProxy(notify, n.tn) |
| 23 | var set string |
| 24 | if v, ok := comm.GetProperty("setdivision"); ok { |
| 25 | set = v |
| 26 | } |
| 27 | n.tm = notifyf.ReportInfo{ |
| 28 | EType: 0, |
| 29 | SApp: app, |
| 30 | SSet: set, |
| 31 | SContainer: container, |
| 32 | SServer: server, |
| 33 | SMessage: "", |
| 34 | SThreadId: "", |
| 35 | ELevel: 0, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // ReportNotifyInfo reports notify information with level and info |
| 40 | func (n *NotifyHelper) ReportNotifyInfo(level int32, info string) { |
no test coverage detected