Newer
Older
CactusServer / src / main / java / cactusServer / entities / URIAddressedAccount.java
y-ota on 28 Jun 2018 664 bytes fuckin json!!!
package cactusServer.entities;

import java.net.URI;

public class URIAddressedAccount{
	private URI uri;
	private Account account;
	
	private URIAddressedAccount() {
		// JSONDecode時の呼び出し用
	}
	
	public URIAddressedAccount(URI uri, Account body) {
		setAccount(body);
		setUri(uri);
	}
	
	public URIAddressedAccount(String str, Account body) {
		setAccount(body);
		setUri(URI.create(str));
	}
	
	public URI getUri() {
		return uri;
	}

	public void setUri(URI uri) {
		this.uri = uri;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

}