Class CloudStepHint
Internal Use Only.
The account's step quota as the licence server last described it, kept in CloudStepHint
by the cloud lease client (HiNc) for the machining runner (HiMech) to word a refused step from: the
server's stepQuota block of a lease answer (the rolling week of a verified account, kind
weekly, or the one-time trial of an unverified one, kind oneTime) with the answer's
verified and the lease's tier. Immutable: a snapshot, since the client replaces the hint at every
sync while the runner reads it. A plan without a quota – a paid plan, whose answer has no
stepQuota – has QuotaKind null and every count 0.
public sealed class CloudStepHint
- Inheritance
-
CloudStepHint
- Inherited Members
- Extension Methods
Constructors
CloudStepHint(bool?, string, string, long, long, long, uint, long, DateTime?, uint, long)
Internal Use Only. Makes the hint.
public CloudStepHint(bool? verified, string tier, string quotaKind, long cap, long balance, long reserved, uint sessionCap, long refillNextSteps, DateTime? refillNextUtc, uint verifiedSessionCap, long verifiedWeekCap)
Parameters
verifiedbool?Whether the account's email address is verified; null when the server did not say.
tierstringThe plan tier of the lease (
edu_trial,education,standard,professional...); null when unknown.quotaKindstringweeklyoroneTime; null when the plan has no quota.caplongThe budget of the quota: the steps per 7 days, or the one-time trial's steps.
balancelongWhat the account may still take beyond the installed lease's grant; floor 0.
reservedlongWhat the installed lease reserved: its
sgrantclaim.sessionCapuintThe per-play step cap the lease signed; 0 = none.
refillNextStepslongWeekly: the steps that drop out of the rolling week at the next UTC midnight; 0 for oneTime.
refillNextUtcDateTime?Weekly: the next UTC midnight; null for oneTime.
verifiedSessionCapuintoneTime: the per-play cap a verified account gets (0 = none); 0 for weekly.
verifiedWeekCaplongoneTime: the weekly budget a verified account gets; 0 for weekly.
Properties
Balance
What the account may still take beyond the installed lease's grant: the budget less what was used and forfeited, less the other devices' reservations, less Reserved; floor 0. 0 = the quota is used up once this lease's grant is.
public long Balance { get; }
Property Value
Cap
The budget: the steps over any 7 consecutive UTC days, or the one-time trial's steps.
public long Cap { get; }
Property Value
QuotaKind
weekly (a verified account's rolling 7 days) or oneTime (an unverified account's trial,
which never refills); null when the plan has no quota.
public string QuotaKind { get; }
Property Value
RefillNextSteps
Weekly only: the steps that drop out of the rolling week at the next UTC midnight; 0 for oneTime.
public long RefillNextSteps { get; }
Property Value
RefillNextUtc
Weekly only: the next UTC midnight, when RefillNextSteps come back; null for oneTime.
public DateTime? RefillNextUtc { get; }
Property Value
Reserved
What the installed lease reserved (its sgrant claim): the smaller of the available steps and SessionCap.
public long Reserved { get; }
Property Value
SessionCap
The per-play step cap the lease signed (the licence's for a verified account, the unverified cap otherwise); 0 = none.
public uint SessionCap { get; }
Property Value
Tier
The plan tier of the lease; null when unknown.
public string Tier { get; }
Property Value
Verified
Whether the account's email address is verified, which picks the weekly quota over the one-time trial; null when the server did not say.
public bool? Verified { get; }
Property Value
- bool?
VerifiedSessionCap
oneTime only: the per-play cap a verified account gets (0 = none), for the wording that asks to verify; 0 for weekly.
public uint VerifiedSessionCap { get; }
Property Value
VerifiedWeekCap
oneTime only: the weekly budget a verified account gets, for the wording that asks to verify; 0 for weekly.
public long VerifiedWeekCap { get; }