-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from NordicSemiconductor/improvements/mesh_mo…
…del_names Adds mesh 1.1 model names
- Loading branch information
Showing
21 changed files
with
1,346 additions
and
2 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
mesh/src/main/java/no/nordicsemi/android/mesh/models/BlobTransferClient.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,64 @@ | ||
/* | ||
* Copyright (c) 2018, Nordic Semiconductor | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package no.nordicsemi.android.mesh.models; | ||
|
||
import android.os.Parcel; | ||
|
||
@SuppressWarnings("WeakerAccess") | ||
public class BlobTransferClient extends SigModel { | ||
|
||
public static final Creator<BlobTransferClient> CREATOR = new Creator<BlobTransferClient>() { | ||
@Override | ||
public BlobTransferClient createFromParcel(final Parcel source) { | ||
return new BlobTransferClient(source); | ||
} | ||
|
||
@Override | ||
public BlobTransferClient[] newArray(final int size) { | ||
return new BlobTransferClient[size]; | ||
} | ||
}; | ||
|
||
public BlobTransferClient(final int modelId) { | ||
super(modelId); | ||
} | ||
|
||
private BlobTransferClient(final Parcel source) { | ||
super(source); | ||
} | ||
|
||
@Override | ||
public String getModelName() { | ||
return "Blob Transfer Client"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(final Parcel dest, final int flags) { | ||
super.parcelMeshModel(dest, flags); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
mesh/src/main/java/no/nordicsemi/android/mesh/models/BlobTransferServer.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,64 @@ | ||
/* | ||
* Copyright (c) 2018, Nordic Semiconductor | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package no.nordicsemi.android.mesh.models; | ||
|
||
import android.os.Parcel; | ||
|
||
@SuppressWarnings("WeakerAccess") | ||
public class BlobTransferServer extends SigModel { | ||
|
||
public static final Creator<BlobTransferServer> CREATOR = new Creator<BlobTransferServer>() { | ||
@Override | ||
public BlobTransferServer createFromParcel(final Parcel source) { | ||
return new BlobTransferServer(source); | ||
} | ||
|
||
@Override | ||
public BlobTransferServer[] newArray(final int size) { | ||
return new BlobTransferServer[size]; | ||
} | ||
}; | ||
|
||
public BlobTransferServer(final int modelId) { | ||
super(modelId); | ||
} | ||
|
||
private BlobTransferServer(final Parcel source) { | ||
super(source); | ||
} | ||
|
||
@Override | ||
public String getModelName() { | ||
return "Blob Transfer Server"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(final Parcel dest, final int flags) { | ||
super.parcelMeshModel(dest, flags); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
mesh/src/main/java/no/nordicsemi/android/mesh/models/FirmwareDistributionClient.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,64 @@ | ||
/* | ||
* Copyright (c) 2018, Nordic Semiconductor | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package no.nordicsemi.android.mesh.models; | ||
|
||
import android.os.Parcel; | ||
|
||
@SuppressWarnings("WeakerAccess") | ||
public class FirmwareDistributionClient extends SigModel { | ||
|
||
public static final Creator<FirmwareDistributionClient> CREATOR = new Creator<FirmwareDistributionClient>() { | ||
@Override | ||
public FirmwareDistributionClient createFromParcel(final Parcel source) { | ||
return new FirmwareDistributionClient(source); | ||
} | ||
|
||
@Override | ||
public FirmwareDistributionClient[] newArray(final int size) { | ||
return new FirmwareDistributionClient[size]; | ||
} | ||
}; | ||
|
||
public FirmwareDistributionClient(final int modelId) { | ||
super(modelId); | ||
} | ||
|
||
private FirmwareDistributionClient(final Parcel source) { | ||
super(source); | ||
} | ||
|
||
@Override | ||
public String getModelName() { | ||
return "Firmware Distribution Server"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(final Parcel dest, final int flags) { | ||
super.parcelMeshModel(dest, flags); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
mesh/src/main/java/no/nordicsemi/android/mesh/models/FirmwareDistributionServer.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,64 @@ | ||
/* | ||
* Copyright (c) 2018, Nordic Semiconductor | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package no.nordicsemi.android.mesh.models; | ||
|
||
import android.os.Parcel; | ||
|
||
@SuppressWarnings("WeakerAccess") | ||
public class FirmwareDistributionServer extends SigModel { | ||
|
||
public static final Creator<FirmwareDistributionServer> CREATOR = new Creator<FirmwareDistributionServer>() { | ||
@Override | ||
public FirmwareDistributionServer createFromParcel(final Parcel source) { | ||
return new FirmwareDistributionServer(source); | ||
} | ||
|
||
@Override | ||
public FirmwareDistributionServer[] newArray(final int size) { | ||
return new FirmwareDistributionServer[size]; | ||
} | ||
}; | ||
|
||
public FirmwareDistributionServer(final int modelId) { | ||
super(modelId); | ||
} | ||
|
||
private FirmwareDistributionServer(final Parcel source) { | ||
super(source); | ||
} | ||
|
||
@Override | ||
public String getModelName() { | ||
return "Firmware Distribution Server"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(final Parcel dest, final int flags) { | ||
super.parcelMeshModel(dest, flags); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
mesh/src/main/java/no/nordicsemi/android/mesh/models/FirmwareUpdateClient.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,64 @@ | ||
/* | ||
* Copyright (c) 2018, Nordic Semiconductor | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package no.nordicsemi.android.mesh.models; | ||
|
||
import android.os.Parcel; | ||
|
||
@SuppressWarnings("WeakerAccess") | ||
public class FirmwareUpdateClient extends SigModel { | ||
|
||
public static final Creator<FirmwareUpdateClient> CREATOR = new Creator<FirmwareUpdateClient>() { | ||
@Override | ||
public FirmwareUpdateClient createFromParcel(final Parcel source) { | ||
return new FirmwareUpdateClient(source); | ||
} | ||
|
||
@Override | ||
public FirmwareUpdateClient[] newArray(final int size) { | ||
return new FirmwareUpdateClient[size]; | ||
} | ||
}; | ||
|
||
public FirmwareUpdateClient(final int modelId) { | ||
super(modelId); | ||
} | ||
|
||
private FirmwareUpdateClient(final Parcel source) { | ||
super(source); | ||
} | ||
|
||
@Override | ||
public String getModelName() { | ||
return "Firmware Update Client"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(final Parcel dest, final int flags) { | ||
super.parcelMeshModel(dest, flags); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
mesh/src/main/java/no/nordicsemi/android/mesh/models/FirmwareUpdateServer.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,64 @@ | ||
/* | ||
* Copyright (c) 2018, Nordic Semiconductor | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package no.nordicsemi.android.mesh.models; | ||
|
||
import android.os.Parcel; | ||
|
||
@SuppressWarnings("WeakerAccess") | ||
public class FirmwareUpdateServer extends SigModel { | ||
|
||
public static final Creator<FirmwareUpdateServer> CREATOR = new Creator<FirmwareUpdateServer>() { | ||
@Override | ||
public FirmwareUpdateServer createFromParcel(final Parcel source) { | ||
return new FirmwareUpdateServer(source); | ||
} | ||
|
||
@Override | ||
public FirmwareUpdateServer[] newArray(final int size) { | ||
return new FirmwareUpdateServer[size]; | ||
} | ||
}; | ||
|
||
public FirmwareUpdateServer(final int modelId) { | ||
super(modelId); | ||
} | ||
|
||
private FirmwareUpdateServer(final Parcel source) { | ||
super(source); | ||
} | ||
|
||
@Override | ||
public String getModelName() { | ||
return "Firmware Update Server"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(final Parcel dest, final int flags) { | ||
super.parcelMeshModel(dest, flags); | ||
} | ||
} |
Oops, something went wrong.