private static void SharePromoCode(string promoCode) { var inviteContent = new InviteContent() { Text = "Use my Promo Code to get a personal discount: " + InviteTextPlaceholders.PlaceholderPromoCode + " . " + InviteTextPlaceholders.PlaceholderAppInviteUrl }; // FIXME: use proper constants inviteContent.AddLinkParam(LinkParams.KeyPromoCode, promoCode); //todo InvitesViewBuilder.Create().SetCustomInviteContent(inviteContent).Show(); }
void ShowNativeSmartInvitesViewCustomized() { var inviteContent = CustomInviteContent; InvitesViewBuilder.Create() .SetWindowTitle(CustomTitle) .SetCustomInviteContent(CustomInviteContent) .SetInviteCallbacks( channelId => _console.LogD("Successfully sent invite for " + channelId), channelId => _console.LogW("Sending invite cancelled for " + channelId), (channelId, error) => _console.LogE(string.Format("Failed to send invite: {0} for {1}", error.Message, channelId))) .Show(); }
static void ShowNativeSmartInvitesView() { InvitesViewBuilder.Create().Show(); }