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

OcsResponse.java « model « shared « notes « owncloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fea9a92d28fe5b367b44131ebddc3f3da0b13a9 (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
package it.niedermann.owncloud.notes.shared.model;

import com.google.gson.annotations.Expose;

/**
 * <a href="https://www.open-collaboration-services.org/">OpenCollaborationServices</a>
 *
 * @param <T> defines the payload of this {@link OcsResponse}.
 */
public class OcsResponse<T> {

    @Expose
    public OcsWrapper<T> ocs;

    public static class OcsWrapper<T> {
        @Expose
        public OcsMeta meta;
        @Expose
        public T data;
    }

    public static class OcsMeta {
        @Expose
        public String status;
        @Expose
        public int statuscode;
        @Expose
        public String message;
    }
}