package com.sikey.wa04.business.infrastructure.dto.response.user;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class SignInResponse {
    private String token;
    private String uid;
    private String phoneNumber;
    private String areaCode;
    private List<SignInChild> childList;

    @Data
    @Accessors(chain = true)
    public static class SignInChildDevice {
        private Long did;
        private Integer battery;
        private Integer signal;
        private Integer maxSignal;
        private String ticket;
    }

    @Data
    @Accessors(chain = true)
    public static class SignInChildLocation {
    }

    @Data
    @Accessors(chain = true)
    public static class SignInChild {
        private String cid;
        private Integer stepCount;
        private String name;
        private String avatar;
        private Integer role;
        private SignInChildDevice device;
        private SignInChildLocation lastLocation;
    }
}
