API ReferenceGearsSharing
ShareCodeValidationResult
The result of checking a share code.
public sealed class ShareCodeValidationResultThe result of checking a share code.
Inheritance: Object → ShareCodeValidationResult
Properties
IsValid
public bool IsValid { get; }Gets whether the code is valid: it could be read, and no mod or setting is repeated.
Errors
public IReadOnlyList<ShareCodeError> Errors { get; }Gets the problems found. Empty when the code is valid.
ShareCode
public ShareCode ShareCode { get; }Gets the decoded contents. Set whenever the code could be read, even if a mod or setting is repeated, so an editor can show what is there; null if it could not be read.