aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/entities/RemoteFile.java
blob: 76c1dbc96ce9d75f79bd64f7dd698d10662ea01e (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
package de.thedevstack.conversationsplus.entities;

import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * Created by steckbrief on 22.08.2016.
 */
public class RemoteFile implements Serializable {
    private static final long serialVersionUID = 34564871234564L;
    private final String path;

    public RemoteFile(@NonNull String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RemoteFile that = (RemoteFile) o;

        return path.equals(that.path);

    }

    @Override
    public int hashCode() {
        return path.hashCode();
    }
}