示例#1
0
        //    internal static IDictionary<string, object> ToDictionary(this LLInboxCampaign campaign)
        //    {
        //        return new Dictionary<string, object>
        //        {
        //            { "_nativeHandle", campaign },
        //            { "campaignId", campaign.CampaignId },
        //            { "name", campaign.Name },
        ////{ "attributes", campaign.Attributes },
        ////{ "creativeFilePath", campaign.CreativeFilePath },
        //{ "read", campaign.Read },
        //        { "titleText", campaign.TitleText },
        //        { "summaryText", campaign.SummaryText },
        //        { "thumbnailUrl", campaign.ThumbnailUrl.ToString() },
        //        { "hasCreative", campaign.HasCreative },
        //        { "sortOrder", campaign.SortOrder },
        //        { "receivedDate", campaign.ReceivedDate },
        //        { "deepLinkURL", campaign.DeepLinkURL.ToString() },
        //        { "isPushToInboxCampaign", campaign.IsPushToInboxCampaign }
        //        { "isDeleted", campaign.IsDeleted }
        //    };
        //}

        internal static IDictionary <string, object> ToDictionary(this LLPlacesCampaign campaign)
        {
            return(new Dictionary <string, object>
            {
                { "_nativeHandle", campaign },
                { "campaignId", campaign.CampaignId },
                { "name", campaign.Name },
                //{ "attributes", campaign.Attributes },
                { "message", campaign.Message },
                { "soundFilename", campaign.SoundFilename },
                { "region", campaign.Region },
                { "event", (ulong)campaign.Event },
                { "category", campaign.Category },
                { "attachmentURL", campaign.AttachmentUrl },
                { "attachmentURL", campaign.AttachmentType }
            });
        }
 UILocalNotification LocalyticsWillDisplayNotification(UILocalNotification notification, LLPlacesCampaign campaign)
 {
     Console.Write("LocalyticsWillDisplayNotification");
     return(notification);
 }
 public override bool LocalyticsShouldDisplayPlacesCampaign(LLPlacesCampaign campaign)
 {
     Console.Write("LocalyticsShouldDisplayPlacesCampaign");
     return(true);
 }
示例#4
0
 // @required +(void)triggerPlacesNotificationForCampaign:(LLPlacesCampaign * _Nonnull)campaign;
 public static void TriggerPlacesNotificationForCampaign(LLPlacesCampaign campaign)
 {
     Localytics.TriggerPlacesNotificationForCampaign(campaign);
 }
示例#5
0
 // @required +(void)tagPlacesPushOpened:(LLPlacesCampaign * _Nonnull)campaign withActionIdentifier:(NSString * _Nonnull)identifier;
 public static void TagPlacesPushOpened(LLPlacesCampaign campaign, string identifier)
 {
     Localytics.TagPlacesPushOpened(campaign, identifier);
 }
示例#6
0
 // @required +(void)tagPlacesPushOpened:(LLPlacesCampaign * _Nonnull)campaign;
 public static void TagPlacesPushOpened(LLPlacesCampaign campaign)
 {
     Localytics.TagPlacesPushOpenedPrivate(campaign);
 }
示例#7
0
 public UserNotifications.UNMutableNotificationContent PlacesWillDisplayNotificationContent(UserNotifications.UNMutableNotificationContent notificationContent, LLPlacesCampaign placesCampaign)
 {
     Console.WriteLine("XamarinEvent PlacesWillDisplayNotificationContent {0}", placesCampaign);
     return(notificationContent);
 }
示例#8
0
 public UILocalNotification PlacesWillDisplayNotification(UILocalNotification localNotification, LLPlacesCampaign placesCampaign)
 {
     Console.WriteLine("XamarinEvent PlacesWillDisplayNotification {0}", placesCampaign);
     return(localNotification);
 }