Exemplo n.º 1
0
        private async void GetDetailMethod()
        {
            if (_isLoaded || null == _topic)
            {
                return;
            }

            Loading = true;

            var result = await _topic.GetDetailAsync(LoginUser.Current.Token, _topicId, true);

            Loading = false;

            if (null != result.Error)
            {
                ToasteIndicator.Instance.Show(String.Empty, result.Error.Message, null, 3);

                Debug.WriteLine(Regex.Unescape(result.Error.Message));
                return;
            }

            _isLoaded = true;
            Detail    = result.Result;
        }