public static string RawItemText(this POEFetchResult fetch) { if (!string.IsNullOrWhiteSpace(fetch?.Item?.Extended?.Text)) { var data = Convert.FromBase64String(fetch.Item.Extended.Text); return(Encoding.UTF8.GetString(data)); } else { return(null); } }
public static string WhisperText(this POEFetchResult fetch) { return(fetch.Listing.Whisper); }
public void Copy(POEFetchResult fetch) { Clipboard.SetText(fetch.RawItemText()); }
public void Whisper(POEFetchResult fetch) { Clipboard.SetText(fetch.WhisperText()); }