@@ -267,28 +267,28 @@ separate these from the main code. To facilitate this we have included the _**Mo
267
267
#### Example MoralisLiveQueryCallbacks Use
268
268
```
269
269
MoralisLiveQueryCallbacks<Hero> callbacks = new MoralisLiveQueryCallbacks<Hero>();
270
- callbacks.OnConnectedEvent += (() => { Console.WriteLine ("Connection Established."); });
271
- callbacks.OnSubscribedEvent += ((requestId) => { Console.WriteLine ($"Subscription {requestId} created."); });
272
- callbacks.OnUnsubscribedEvent += ((requestId) => { Console.WriteLine ($"Unsubscribed from {requestId}."); });
270
+ callbacks.OnConnectedEvent += (() => { Debug.Log ("Connection Established."); });
271
+ callbacks.OnSubscribedEvent += ((requestId) => { Debug.Log ($"Subscription {requestId} created."); });
272
+ callbacks.OnUnsubscribedEvent += ((requestId) => { Debug.Log ($"Unsubscribed from {requestId}."); });
273
273
callbacks.OnErrorEvent += ((ErrorMessage em) =>
274
274
{
275
- Console.WriteLine ($"ERROR: code: {em.code}, msg: {em.error}, requestId: {em.requestId}");
275
+ Debug.Log ($"ERROR: code: {em.code}, msg: {em.error}, requestId: {em.requestId}");
276
276
});
277
277
callbacks.OnCreateEvent += ((item, requestId) =>
278
278
{
279
- Console.WriteLine ($"Created hero: name: {item.Name}, level: {item.Level}, strength: {item.Strength} warcry: {item.Warcry}");
279
+ Debug.Log ($"Created hero: name: {item.Name}, level: {item.Level}, strength: {item.Strength} warcry: {item.Warcry}");
280
280
});
281
281
callbacks.OnUpdateEvent += ((item, requestId) =>
282
282
{
283
- Console.WriteLine ($"Updated hero: name: {item.Name}, level: {item.Level}, strength: {item.Strength} warcry: {item.Warcry}");
283
+ Debug.Log ($"Updated hero: name: {item.Name}, level: {item.Level}, strength: {item.Strength} warcry: {item.Warcry}");
284
284
});
285
285
callbacks.OnDeleteEvent += ((item, requestId) =>
286
286
{
287
- Console.WriteLine ($"Hero {item.Name} has been defeated and removed from the roll!");
287
+ Debug.Log ($"Hero {item.Name} has been defeated and removed from the roll!");
288
288
});
289
289
callbacks.OnGeneralMessageEvent += ((text) =>
290
290
{
291
- Console.WriteLine ($"Websocket message: {text}");
291
+ Debug.Log ($"Websocket message: {text}");
292
292
});
293
293
```
294
294
0 commit comments