// Path: app/src/main/java/com/zulip/android/util/TypeSwapper.java
// public interface TypeSwapper<GIVEN, RETURN> {
//     RETURN convert(GIVEN given);
// 
// }
// 
// Path: app/src/main/java/com/zulip/android/util/ZLog.java
// public class ZLog {
// 
//     private ZLog() {
//     }
// 
//     public static void logException(Throwable e) {
//         if (!BuildHelper.shouldLogToCrashlytics()) {
//             Log.e("Error", "oops", e);
//         } else {
//             Crashlytics.logException(e);
//         }
//     }
// 
//     public static void log(String message) {
//         if (!BuildHelper.shouldLogToCrashlytics()) {
//             Log.e("Error", message);
//         } else {
//             Crashlytics.log(message);
//         }
//     }
// }


import android.support.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import com.zulip.android.util.TypeSwapper;
import com.zulip.android.util.ZLog;
import java.util.ArrayList;
import java.util.List;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    /**
     * Function to get events of branch type {@param branchType} from {@link GetEventResponse#events}
     * list.
     *
     * @param branchType {@link EventsBranch.BranchType}
     * @return list of events of branch type {@param branchType}
     */
    public List<EventsBranch> getEventsOfBranchType(EventsBranch.BranchType branchType) {
        List<EventsBranch> branches = this.getEvents();

        List<EventsBranch> retVal = new ArrayList<>();
        for (EventsBranch eventBranch : branches) {
            if (eventBranch.getClass().equals(branchType.getKlazz())) {
// Path: app/src/main/java/com/zulip/android/util/TypeSwapper.java
// public interface TypeSwapper<GIVEN, RETURN> {
//     RETURN convert(GIVEN given);
// 
// }
// 
// Path: app/src/main/java/com/zulip/android/util/ZLog.java
// public class ZLog {
// 
//     private ZLog() {
//     }
// 
//     public static void logException(Throwable e) {
//         if (!BuildHelper.shouldLogToCrashlytics()) {
//             Log.e("Error", "oops", e);
//         } else {
//             Crashlytics.logException(e);
//         }
//     }
// 
//     public static void log(String message) {
//         if (!BuildHelper.shouldLogToCrashlytics()) {
//             Log.e("Error", message);
//         } else {
//             Crashlytics.log(message);
//         }
//     }
// }


// Path: app/src/main/java/com/zulip/android/networking/response/events/GetEventResponse.java
import android.support.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import com.zulip.android.util.TypeSwapper;
import com.zulip.android.util.ZLog;
import java.util.ArrayList;
import java.util.List;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    /**
     * Function to get events of branch type {@param branchType} from {@link GetEventResponse#events}
     * list.
     *
     * @param branchType {@link EventsBranch.BranchType}
     * @return list of events of branch type {@param branchType}
     */
    public List<EventsBranch> getEventsOfBranchType(EventsBranch.BranchType branchType) {
        List<EventsBranch> branches = this.getEvents();

        List<EventsBranch> retVal = new ArrayList<>();
        for (EventsBranch eventBranch : branches) {
            if (eventBranch.getClass().equals(branchType.getKlazz())) {
                retVal.add(eventBranch);