All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ksu.canvas.errors.UserErrorResponse Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package edu.ksu.canvas.errors;

import java.util.List;

/**
 * The error object that is returned when the creation of a user fails because the data isn't good.
 * This allows you to retrieve more information about what was wrong with your request.
 */
public class UserErrorResponse {

    private Errors errors;

    public Errors getErrors() {
        return errors;
    }

    public void setErrors(Errors errors) {
        this.errors = errors;
    }

    public static class Errors {
        private User user;
        private Pseudonym pseudonym;

        public User getUser() {
            return user;
        }

        public void setUser(User user) {
            this.user = user;
        }

        public Pseudonym getPseudonym() {
            return pseudonym;
        }

        public void setPseudonym(Pseudonym pseudonym) {
            this.pseudonym = pseudonym;
        }

        public static class User {
            private List pseudonyms;

            public List getPseudonyms() {
                return pseudonyms;
            }

            public void setPseudonyms(List pseudonyms) {
                this.pseudonyms = pseudonyms;
            }
        }

        public static class Pseudonym {
            private List uniqueId;

            public List getUniqueId() {
                return uniqueId;
            }

            public void setUniqueId(List uniqueId) {
                this.uniqueId = uniqueId;
            }
        }

        public static class Error {
            private String attribute;
            private String type;
            private String message;

            public String getAttribute() {
                return attribute;
            }

            public void setAttribute(String attribute) {
                this.attribute = attribute;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getMessage() {
                return message;
            }

            public void setMessage(String message) {
                this.message = message;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy