Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stabilised inventory updating license * Removed Codacy Warning
- Loading branch information
1 parent
213ddde
commit 1e02662
Showing
9 changed files
with
344 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
mobile/src/main/java/org/hawkular/client/android/backend/model/MetricInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.hawkular.client.android.backend.model; | ||
|
||
import android.os.Parcel; | ||
import android.os.Parcelable; | ||
|
||
/** | ||
* Created by pallavi on 14/07/17. | ||
*/ | ||
|
||
public class MetricInfo implements Parcelable{ | ||
private String id; | ||
private String name; | ||
|
||
public MetricInfo(String id, String name, String metricTypePath) { | ||
this.id = id; | ||
this.name = name; | ||
this.metricTypePath = metricTypePath; | ||
} | ||
|
||
private String metricTypePath; | ||
|
||
public MetricInfo(Parcel in) { | ||
id = in.readString(); | ||
name = in.readString(); | ||
metricTypePath = in.readString(); | ||
} | ||
|
||
|
||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getMetricTypePath() { | ||
return metricTypePath; | ||
} | ||
|
||
public void setMetricTypePath(String metricTypePath) { | ||
this.metricTypePath = metricTypePath; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(Parcel dest, int flags) { | ||
dest.writeString(id); | ||
dest.writeString(name); | ||
dest.writeString(metricTypePath); | ||
} | ||
public static final Creator<MetricInfo> CREATOR = new Creator<MetricInfo>() { | ||
@Override | ||
public MetricInfo createFromParcel(Parcel in) { | ||
return new MetricInfo(in); | ||
} | ||
|
||
@Override | ||
public MetricInfo[] newArray(int size) { | ||
return new MetricInfo[size]; | ||
} | ||
}; | ||
|
||
} |
72 changes: 72 additions & 0 deletions
72
mobile/src/main/java/org/hawkular/client/android/backend/model/MetricTemp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.hawkular.client.android.backend.model; | ||
|
||
import android.os.Parcel; | ||
import android.os.Parcelable; | ||
|
||
/** | ||
* Created by pallavi on 14/07/17. | ||
*/ | ||
|
||
public class MetricTemp implements Parcelable{ | ||
|
||
MetricInfo metricInfo; | ||
|
||
public MetricTemp(MetricInfo metricInfo) { | ||
this.metricInfo = metricInfo; | ||
} | ||
|
||
protected MetricTemp(Parcel in) { | ||
metricInfo = in.readParcelable(MetricInfo.class.getClassLoader()); | ||
} | ||
|
||
public static final Creator<MetricTemp> CREATOR = new Creator<MetricTemp>() { | ||
@Override | ||
public MetricTemp createFromParcel(Parcel in) { | ||
return new MetricTemp(in); | ||
} | ||
|
||
@Override | ||
public MetricTemp[] newArray(int size) { | ||
return new MetricTemp[size]; | ||
} | ||
}; | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(Parcel dest, int flags) { | ||
dest.writeParcelable(metricInfo, flags); | ||
} | ||
|
||
public MetricInfo getMetricInfo() { | ||
return metricInfo; | ||
} | ||
|
||
public void setMetricInfo(MetricInfo metricInfo) { | ||
this.metricInfo = metricInfo; | ||
} | ||
|
||
public static Creator<MetricTemp> getCREATOR() { | ||
return CREATOR; | ||
} | ||
} | ||
|
Oops, something went wrong.