mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 16:08:03 +01:00
Remove unused entity
This commit is contained in:
committed by
ravi-signal
parent
40639f70f4
commit
438abc4cf9
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright 2013-2020 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
package org.whispersystems.textsecuregcm.entities;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
|
||||
public class AttachmentUri {
|
||||
|
||||
@JsonProperty
|
||||
private String location;
|
||||
|
||||
public AttachmentUri(URL uri) {
|
||||
this.location = uri.toString();
|
||||
}
|
||||
|
||||
public AttachmentUri() {}
|
||||
|
||||
public URL getLocation() throws MalformedURLException {
|
||||
return URI.create(location).toURL();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user