aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/dto/RemoteFile.java
blob: 58b64b2889410460b8b88ff96df720c8e3bf33c7 (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.dto;

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();
    }
}