private AppboyIngameMessage ParseData(string _jsonString) { AppboyIngameMessage message = null; try { message = JsonUtils.Deserialize <AppboyIngameMessage>(_jsonString, true); message.JSONData = _jsonString; } catch (Exception exception) { this.Log("Could not deserialize received data"); this.Log(exception.ToString()); } return(message); }
public void AppboySlideupListener(object _data) { this.Log("------------------------------AppboySlideupListener, received data:"); if (_data != null) { this.Log(_data.ToString()); } if (this.pendingMessages != null) { AppboyIngameMessage item = this.ParseData(_data as string); if (item != null) { this.pendingMessages.Add(item); item.LoadResources(this); } } }
private bool IsValidMessage(AppboyIngameMessage message) { return((message.extras != null) && message.ResourcesLoaded); }
private bool IsValidForcedMessage(AppboyIngameMessage message) { return(((message.extras != null) && !string.IsNullOrEmpty(message.extras.ForcedDisplay)) && message.ResourcesLoaded); }