@@ -267,28 +267,28 @@ separate these from the main code. To facilitate this we have included the _**Mo
267267#### Example MoralisLiveQueryCallbacks Use
268268```
269269MoralisLiveQueryCallbacks<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}."); });
273273callbacks.OnErrorEvent += ((ErrorMessage em) =>
274274{
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}");
276276});
277277callbacks.OnCreateEvent += ((item, requestId) =>
278278{
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}");
280280});
281281callbacks.OnUpdateEvent += ((item, requestId) =>
282282{
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}");
284284});
285285callbacks.OnDeleteEvent += ((item, requestId) =>
286286{
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!");
288288});
289289callbacks.OnGeneralMessageEvent += ((text) =>
290290{
291- Console.WriteLine ($"Websocket message: {text}");
291+ Debug.Log ($"Websocket message: {text}");
292292});
293293```
294294
0 commit comments