summaryrefslogtreecommitdiffstats
blob: 09e173f19cd25443aac5983ecc8209168ea2ab4a (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
/*
 * Copyright (c) 2010-2015, Isode Limited, London, England.
 * All rights reserved.
 */
package com.isode.stroke.elements;

/**
 * Class representing Private XML Storage for storing arbitrary private
 * user data on User's server(such as XEP-0048's bookmarks)
 *
 */
public class PrivateStorage extends Payload {
    
    public PrivateStorage() {}

        /**
     * Constructor 
     * @param p payload, not null
     */
    public PrivateStorage(Payload p) {
        this.payload = p;
    }

    /**
     * Get payload
     * @return payload, not null
     */
    public Payload getPayload() {
        return payload;
    }

    /**
     * Set payload
     * @param p payload, not null
     */
    public void setPayload(Payload p) {
        payload = p;
    }

    private Payload payload;
}