<commit_before>﻿using System;
using System.Collections.Generic;

namespace Com.OneSignal.Core {
    public class PermissionState {
        readonly bool hasPrompted = false;
        readonly bool provisional = false;
        NotificationPermission status;

        //public PermissionState(Dictionary<string, dynamic> json) {
        //    //if (json.ContainsKey("status")) {
        //    //    status = json["status"];

        //    //}
        //    //else if (json.ContainsKey("enabled")) {
        //    //    bool enabled = json["enabled"];
        //    //    status = enabled
        //    //       ? NotificationPermission.AUTHORIZED
        //    //       : NotificationPermission.DENIED;
        //    //}

        //    //    if (json.ContainsKey("provisional")) {
        //    //        provisional = json["provisional"];
        //    //    }
        //    //    else {
        //    //        provisional = false;
        //    //    }

        //    //    if (json.ContainsKey("hasPrompted")) {
        //    //        hasPrompted = json["hasPrompted"];
        //    //    }
        //    //    else {
        //    //        hasPrompted = false;
        //    //    }
        //    //}

        //    //public PermissionState(bool areNotificationsEnabled) {
        //    //    if (areNotificationsEnabled) {
        //    //        status = NotificationPermission.AUTHORIZED;
        //    //    }
        //    //    else {
        //    //        status = NotificationPermission.DENIED;
        //    //    }
        //}

        //string jsonRepresentation() {
        //    return "";
        //}        
    }

    public enum NotificationPermission { NOTDETERMINED, DENIED, AUTHORIZED, PROVISIONAL };
}<commit_msg>Update PermissionState<commit_after>﻿using System;
using System.Collections.Generic;

namespace Com.OneSignal.Core {
   /// <summary>
   /// Status of ability to send push notification as determined by the current user
   /// </summary>
   public enum NotificationPermission {
      /// <summary>The user has not yet made a choice regarding whether your app can show notifications.</summary>
      NotDetermined,

      /// <summary>The application is not authorized to post user notifications.</summary>
      Denied,

      /// <summary>The application is authorized to post user notifications.</summary>
      Authorized,

      /// <summary>The application is only authorized to post Provisional notifications (direct to history)</summary>
      Provisional,

      /// <summary>The application is authorized to send notifications for 8 hours. Only used by App Clips.</summary>
      Ephemeral
   }

   [Serializable]
   public sealed class PermissionState {
      public bool hasPrompted;
      public NotificationPermission status;
      public bool provisional;
   }
}
{'fraction_non_alphanumeric': 0.12109375, 'fraction_numerical': 0.0003551136363636364, 'mean_word_length': 1.6083333333333334, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6422294', 'n_tokens_mistral': 756, 'n_tokens_neox': 711, 'n_words': 174}