예제 #1
0
 static void publishTomahawk(Channel topic, int position, string timestamp)
 {
     topic.send(new Dictionary <string, object> {
         { "liveValue", position },
         { "liveTimestamp", timestamp }
     });
 }
예제 #2
0
 static void publishAim(Channel topic, string tag, string ticker, string yellowKey, int position, string timestamp)
 {
     topic.send(new Dictionary <string, object> {
         { "TIMESTAMP", timestamp },
         { "level1TagName", tag },
         { "currentPosition", position + "" },
         { "ticker", ticker },
         { "yellowKey", yellowKey },
     });
 }
예제 #3
0
 public FerretControl(FerretControlGui gui, Channel status)
 {
     this.gui = gui;
     status.subscribe(fields => changeStatus(fields.text("FERRETSTATE")));
 }