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

OcsProject.java « projects « ocs « 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: 49bc7296d36b29474293a0bedcdab8be2832e0c7 (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
package it.niedermann.nextcloud.deck.model.ocs.projects;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.Index;

import java.util.ArrayList;
import java.util.List;

import it.niedermann.nextcloud.deck.model.interfaces.AbstractRemoteEntity;

@Entity(inheritSuperIndices = true,
        indices = {
                @Index(value = "accountId", name = "index_project_accID"),
        },
        foreignKeys = {
        }
)
public class OcsProject extends AbstractRemoteEntity {
    @NonNull
    private String name;

    @Ignore
    @NonNull
    private ArrayList<OcsProjectResource> resources = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @NonNull
    public ArrayList<OcsProjectResource> getResources() {
        return resources;
    }

    public void setResources(@NonNull List<OcsProjectResource> resources) {
        this.resources.clear();
        this.resources.addAll(resources);
    }
}