Table of Contents

Method TryDecode

Namespace
MailFathom.Application.Emails.BrowseThread
Assembly
MailFathom.Application.dll

TryDecode(string?, out EmailThreadCursor)

Reads a cursor a caller presented.

public static bool TryDecode(string? text, out EmailThreadCursor cursor)

Parameters

text string

The encoded cursor, as a previous page returned it.

cursor EmailThreadCursor

The decoded cursor when the text is one this version issued; otherwise the struct default.

Returns

bool

true when the text decoded into a usable cursor; otherwise false.

Remarks

A payload carrying an instant is refused, because this reading writes none and one that arrived carrying one was built rather than issued. Whether a decoded cursor belongs to the conversation in hand is a separate question its ThreadFingerprint answers, and one this method deliberately does not ask.