Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Serializable" to some classes (#194) #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import com.microsoft.rest.protocol.Environment;

import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
Expand All @@ -16,7 +17,9 @@
/**
* An instance of this class describes an environment in Azure.
*/
public final class AzureEnvironment implements Environment {
public final class AzureEnvironment implements Environment, Serializable {
private static final long serialVersionUID = 2419074576693L;

/** the map of all endpoints. */
private final Map<String, String> endpoints;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@

package com.microsoft.azure;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
* An instance of this class provides additional information about an http error response.
*/
public final class CloudError {
public final class CloudError implements Serializable {
private static final long serialVersionUID = -987489719074576123L;

/**
* The error code parsed from the body of the http error response.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@
import retrofit2.Response;

import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Type;

/**
* An instance of this class defines polling status of a long running operation.
*
* @param <T> the type of the resource the operation returns.
*/
public class PollingState<T> {
public class PollingState<T> implements Serializable {
private static final long serialVersionUID = 9874897190735754L;

/** The HTTP method used to initiate the long running operation. **/
private String initialHttpMethod;
/** The polling status. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Map;

/**
* The Resource model.
*/
public class Resource {
public class Resource implements Serializable {
private static final long serialVersionUID = -123489719074576693L;

/**
* Resource Id.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@

package com.microsoft.azure;

import java.io.Serializable;

/**
* The SubResource model.
*/
public class SubResource {
public class SubResource implements Serializable {
private static final long serialVersionUID = 1189719074576693L;

/**
* Resource Id.
*/
Expand Down