GoXaReceiver.java 1.18 KB
Newer Older
Alexander Ivanov's avatar
Alexander Ivanov committed
1 2
/**
 * Copyright (c) 2013, Redsolution LTD. All rights reserved.
3
 *
Alexander Ivanov's avatar
Alexander Ivanov committed
4 5
 * This file is part of Xabber project; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License, Version 3.
6
 *
Alexander Ivanov's avatar
Alexander Ivanov committed
7 8 9 10
 * Xabber is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
11
 *
Alexander Ivanov's avatar
Alexander Ivanov committed
12 13 14 15 16 17 18 19 20 21 22 23 24
 * You should have received a copy of the GNU General Public License,
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */
package com.xabber.android.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.xabber.android.data.account.AccountManager;

/**
 * Receiver for scheduled status change to "eXtended Away".
25
 *
Alexander Ivanov's avatar
Alexander Ivanov committed
26 27 28 29
 * @author alexander.ivanov
 */
public class GoXaReceiver extends BroadcastReceiver {

30 31 32 33
    @Override
    public void onReceive(Context context, Intent intent) {
        AccountManager.getInstance().goXa();
    }
Alexander Ivanov's avatar
Alexander Ivanov committed
34

35 36 37
    public static Intent createIntent(Context context) {
        return new Intent(context, GoXaReceiver.class);
    }
Alexander Ivanov's avatar
Alexander Ivanov committed
38 39

}