Пример #1
0
        public const uint Notification_String_Count        = 6;                //Title+Body+Date+IsRepeat+CalenderIdentifier+CalenderUnit

        public override string ToString()
        {
            string formatString = "";

            formatString += Notification_Spacer_Block_Item;
            formatString += Title;
            formatString += Notification_Spacer_Block_Data;
            formatString += Body;
            formatString += Notification_Spacer_Block_Data;
            formatString += FireDate.ToString();
            formatString += Notification_Spacer_Block_Data;
            if (Repeat)
            {
                formatString += Notification_Wildcard_Repeat;
            }
            else
            {
                formatString += Notification_Wildcard_Once;
            }
            formatString += Notification_Spacer_Block_Data;
            formatString += GameCalendarIdentifier.ChineseCalendar.ToString();
            formatString += Notification_Spacer_Block_Data;
            formatString += GameCalendarUnit.Day.ToString();

            return(formatString);
        }
Пример #2
0
        internal IDictionary JSONObject()
        {
            Dictionary <string, object> _jsonDict = new Dictionary <string, object>();

            _jsonDict[kAlertBodyKey] = AlertBody;
            _jsonDict[kFireDateKey]  = FireDate.ToStringUsingZuluFormat();
            _jsonDict[kUserInfoKey]  = UserInfo;

            if (iOSProperties != null)
            {
                _jsonDict[kiOSPropertiesKey] = iOSProperties.JSONObject();
            }

            if (AndroidProperties != null)
            {
                _jsonDict[kAndroidPropertiesKey] = AndroidProperties.JSONObject();
            }

            return(_jsonDict);
        }