Membership
- TypeScript
- C#
type MembershipPayload = {
id: string
timestamp: number
sender?: AudiencePayload
sku: SkuPayload
count: number
start: number
end: number
}
struct MembershipPayload
{
public string Id;
public int Timestamp;
public AudiencePayload? Sender;
public SkuPayload Sku;
public int Count;
public int Start;
public int End;
}
This data is sent when a membershp/subscription is purchased by any audience in a channel.
caution
Some streaming platforms might allow anonymous membership/subscription. In this case, the sender
field will not be present.