// Path: app/src/main/java/net/hyx/app/volumenotification/entity/VolumeControl.java
// public class VolumeControl implements Serializable {
// 
//     public int type;
//     public int position;
//     public int status;
//     public String icon;
//     public String label;
// 
//     public VolumeControl(int type, int position, int status, String icon, String label) {
//         this.type = type;
//         this.position = position;
//         this.status = status;
//         this.icon = icon;
//         this.label = label;
//     }
// 
// }


import android.content.Context;
import android.content.SharedPreferences.Editor;
import android.media.AudioManager;
import android.util.SparseArray;
import androidx.annotation.NonNull;
import com.google.gson.Gson;
import net.hyx.app.volumenotification.R;
import net.hyx.app.volumenotification.entity.VolumeControl;
import java.util.ArrayList;
import java.util.List;
/*
 * Copyright 2017 https://github.com/seht
 *
 * 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 net.hyx.app.volumenotification.model;






public class VolumeControlModel {

    public static final String ITEM_FIELD = "item";
    public static final String STREAM_TYPE_FIELD = "item_type";
    public static final int DEFAULT_STREAM_TYPE = AudioManager.STREAM_MUSIC;

    private final Context context;
    private final SettingsModel settings;
    private final ArrayList<Integer> defaultOrder;
// Path: app/src/main/java/net/hyx/app/volumenotification/entity/VolumeControl.java
// public class VolumeControl implements Serializable {
// 
//     public int type;
//     public int position;
//     public int status;
//     public String icon;
//     public String label;
// 
//     public VolumeControl(int type, int position, int status, String icon, String label) {
//         this.type = type;
//         this.position = position;
//         this.status = status;
//         this.icon = icon;
//         this.label = label;
//     }
// 
// }


// Path: app/src/main/java/net/hyx/app/volumenotification/model/VolumeControlModel.java
import android.content.Context;
import android.content.SharedPreferences.Editor;
import android.media.AudioManager;
import android.util.SparseArray;
import androidx.annotation.NonNull;
import com.google.gson.Gson;
import net.hyx.app.volumenotification.R;
import net.hyx.app.volumenotification.entity.VolumeControl;
import java.util.ArrayList;
import java.util.List;

/*
 * Copyright 2017 https://github.com/seht
 *
 * 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 net.hyx.app.volumenotification.model;






public class VolumeControlModel {

    public static final String ITEM_FIELD = "item";
    public static final String STREAM_TYPE_FIELD = "item_type";
    public static final int DEFAULT_STREAM_TYPE = AudioManager.STREAM_MUSIC;

    private final Context context;
    private final SettingsModel settings;
    private final ArrayList<Integer> defaultOrder;
    private final SparseArray<VolumeControl> defaultControls;