summaryrefslogtreecommitdiffstats
blob: 62d17bcce2b3e74b922a3e9b890438d55a69018a (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
53
54
55
56
57
58
/*
 * Copyright (c) 2012, Isode Limited, London, England.
 * All rights reserved.
 */
/*
 * Copyright (c) 2011, Kevin Smith
 * All rights reserved.
 */
package com.isode.stroke.elements;

import com.isode.stroke.jid.JID;

/**
 * Class representing MUC Destroy Payload
 *
 */
public class MUCDestroyPayload extends Payload{
    private JID newVenue_;
    private String reason_ = "";

    /**
     * Create the Destroy payload 
     */
    public MUCDestroyPayload() {
    }

    /**
     * Get new venue jabber ID
     * @return new venue, can be null if not set
     */
    public JID getNewVenue()  {
        return newVenue_;
    }

    /**
     * Get the reason
     * @return reason string, can be null if not set
     */
    public String getReason() {
        return reason_;
    }

    /**
     * Set the jabber ID for new Venue
     * @param jid jabber ID, not null
     */
    public void setNewVenue(JID jid) {
        newVenue_ = jid;
    }

    /**
     * Set the reason string
     * @param reason reason string, not null
     */
    public void setReason(String reason) {
        reason_ = reason;
    }
}