cmd/stream.go
changeset 110 57843255fd1a
parent 103 7a4604bb12d9
child 112 58d30ab47543
equal deleted inserted replaced
109:912e72511084 110:57843255fd1a
   174 					continue
   174 					continue
   175 				}
   175 				}
   176 				errPrint("Event: [%s]", ev.Event)
   176 				errPrint("Event: [%s]", ev.Event)
   177 			case "update":
   177 			case "update":
   178 				s := ev.Data.(madon.Status)
   178 				s := ev.Data.(madon.Status)
   179 				p.PrintObj(&s, nil, "")
   179 				p.printObj(&s)
   180 				continue
   180 				continue
   181 			case "notification":
   181 			case "notification":
   182 				n := ev.Data.(madon.Notification)
   182 				n := ev.Data.(madon.Notification)
   183 				p.PrintObj(&n, nil, "")
   183 				p.printObj(&n)
   184 				continue
   184 				continue
   185 			case "delete":
   185 			case "delete":
   186 				// TODO PrintObj ?
   186 				// TODO PrintObj ?
   187 				errPrint("Event: [%s] Status %d was deleted", ev.Event, ev.Data.(int64))
   187 				errPrint("Event: [%s] Status %d was deleted", ev.Event, ev.Data.(int64))
   188 			default:
   188 			default: