CharacterResponse is an interface representing the response from a character query. It includes the character's id, name, image, description, gender, date of birth, age, blood type, favourite status, site URL, associated media, number of favourites, and moderator notes.

interface CharacterResponse {
    age: string;
    bloodType: string;
    dateOfBirth: FuzzyDate;
    description: string;
    favourites: number;
    gender: string;
    id: number;
    image: Image;
    isFavourite: boolean;
    isFavouriteBlocked: boolean;
    media: {
        nodes: {
            id: number;
            title: Title;
        }[];
    };
    modNotes: string;
    name: Name;
    siteUrl: string;
}

Properties

age: string

age is a string representing the age of the character.

bloodType: string

bloodType is a string representing the blood type of the character.

dateOfBirth: FuzzyDate

dateOfBirth is an instance of FuzzyDate representing the date of birth of the character.

description: string

description is a string representing the description of the character.

favourites: number

favourites is a number representing the number of favourites of the character.

gender: string

gender is a string representing the gender of the character.

id: number

id is a number representing the id of the character.

image: Image

image is an instance of Image representing the image of the character.

isFavourite: boolean

isFavourite is a boolean representing whether the character is a favourite.

isFavouriteBlocked: boolean

isFavouriteBlocked is a boolean representing whether the favourite status of the character is blocked.

media: {
    nodes: {
        id: number;
        title: Title;
    }[];
}

media is an object that includes an array of nodes, each representing a media associated with the character. Each node includes the id and title of the media.

Type declaration

  • nodes: {
        id: number;
        title: Title;
    }[]
modNotes: string

modNotes is a string representing the moderator notes of the character.

name: Name

name is an instance of Name representing the name of the character.

siteUrl: string

siteUrl is a string representing the site URL of the character.