Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CardUpdate.java « propagation « model « deck « nextcloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b13b84e36c0f8024ab146dcfdf20ba29de73bd01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package it.niedermann.nextcloud.deck.model.propagation;

import it.niedermann.nextcloud.deck.model.Card;
import it.niedermann.nextcloud.deck.model.User;
import it.niedermann.nextcloud.deck.model.full.FullCard;

public class CardUpdate extends Card {

    private User owner;

    public CardUpdate(FullCard card) {
        super();
        setTitle(card.getCard().getTitle());
        setDescription(card.getCard().getDescription());
        setStackId(card.getCard().getStackId());
        setType(card.getCard().getType());
        setCreatedAt(card.getCard().getCreatedAt());
        setDeletedAt(card.getCard().getDeletedAt());
        setAttachmentCount(card.getCard().getAttachmentCount());
        setUserId(card.getCard().getUserId());
        setOrder(card.getCard().getOrder());
        setArchived(card.getCard().isArchived());
        setDueDate(card.getCard().getDueDate());
        setNotified(card.getCard().isNotified());
        setOverdue(card.getCard().getOverdue());
        setCommentsUnread(card.getCard().getCommentsUnread());
        setAccountId(card.getAccountId());
        setId(card.getId());
        setLocalId(card.getLocalId());
    }

    public User getOwner() {
        return owner;
    }

    public void setOwner(User owner) {
        this.owner = owner;
    }

    @Override
    public String toString() {
        return "CardUpdate{" +
                "owner=" + owner +
                ", localId=" + localId +
                ", accountId=" + accountId +
                ", id=" + id +
                ", status=" + status +
                ", lastModified=" + lastModified +
                ", lastModifiedLocal=" + lastModifiedLocal +
                "} " + super.toString();
    }
}