export class Group {
    public id?: number;
    public name?: string;
    public description?: string;
    public groupKey?: string; // kod dostępu
    public key?: string; // kod dostępu
    public role?: string; // MEMBER || OWNER
    public owner?: string; // nazwa użytkownika z rolą OWNER
    public users?: UsersConfig[];

    constructor() {}
}

export interface UsersConfig {
    id: number;
    username: string;
}

export class ActivityHistory {

    public date?: Date;
    public from?: string;
    public to?: string;
    public type?: string;
    public points?: number;
    public comment?: string;
    public resourceType?: string;
    public resourceName?: string;
    public id?: number;

    constructor() {}
}

export class TestsInGroup {
    public id: number;
    public title: string;
    public maxScore: number;

    constructor() {}
}

export class TestsInGroupResults {
    public name: string;
    public surname: string;
    public userScore: number;
    public percent: number;

    constructor() {}
}
