Esempio n. 1
0
        // Convert JSON string in to a List of Emails
        // ===============================================
        public List <Email> FromJSON(string json)
        {
            EmailList tempEmailList = new EmailList();

            tempEmailList = JsonUtility.FromJson <EmailList>(json);
            return(tempEmailList.Emails);
        }
Esempio n. 2
0
        // Use this for initialization
        void Start()
        {
            // Enter additional configuration here
            DDNA.Instance.ClientVersion = "v1.0.0";
            DDNA.Instance.SetLoggingLevel(DeltaDNA.Logger.Level.DEBUG);

            // Launch the SDK
            DDNA.Instance.StartSDK(
                "51623112369231521871823313815012",
                "https://collect11781ttrln.deltadna.net/collect/api",
                "https://engage11781ttrln.deltadna.net"
                );

            myEmailList = new EmailList();
        }
Esempio n. 3
0
        public void SetMailDetails(Email email, EmailList parentEmailList)
        {
            this.parentEmailList = parentEmailList;
            this.email           = email;

            this.subject.text  = "Subject : " + email.subject;
            this.sender.text   = "From : " + email.sender;
            this.received.text = "Received : " + email.sent;
            this.id            = email.id;

            if (email.read)
            {
                this.subject.fontStyle = FontStyle.Bold;
            }
            else
            {
                this.subject.fontStyle = FontStyle.Normal;
            }
        }
Esempio n. 4
0
        public void SetMailDetails(Email email, EmailList parentEmailList)
        {
            this.parentEmailList = parentEmailList;
            this.email           = email;

            this.sender.text   = "From : " + email.sender;
            this.received.text = "Received : " + email.sent;
            this.id            = email.id;

            //this.email.imageMessage = imageMessage;

            // Check we got an engagement with a valid image message.
            if (this.email.imageMessage != null)
            {
                Debug.Log("Look, an imageMessage");

                //GameObject emailImage = (GameObject)Instantiate(imageObject, gameObject.transform.position, Random.rotation);
                //emailImage.transform.SetParent(transform.parent);
                //emailImage.url = this.email.url;
            }
        }