geofot96/StudyBuddy

View on GitHub
app/src/main/java/ch/epfl/sweng/studdybuddy/auth/DummyMainActivity.java

Summary

Maintainability
A
0 mins
Test Coverage
package ch.epfl.sweng.studdybuddy.auth;

import com.google.android.gms.tasks.Task;

import ch.epfl.sweng.studdybuddy.EmptyTask;
import ch.epfl.sweng.studdybuddy.activities.MainActivity;
import ch.epfl.sweng.studdybuddy.core.Account;

public class DummyMainActivity extends MainActivity{

    public AuthManager  getAuthManager(){
        return new AuthManager() {
            @Override
            public void login(Account acct, OnLoginCallback f, String TAG) {

            }

            @Override
            public Task<Void> logout() {
                return new EmptyTask();
            }

            @Override
            public void startLoginScreen() {

            }

            @Override
            public Account getCurrentUser() {
                    return new Account();
            }
        };
    }
}