1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.android.wallpaper.weathereffects.shared.model
18 
19 import android.graphics.Bitmap
20 import com.google.android.wallpaper.weathereffects.provider.WallpaperInfoContract
21 
22 /**
23  * Model representing assets.
24  *
25  * @param foregroundAbsolutePath Absolute file path of the foreground asset.
26  * @param backgroundAbsolutePath Absolute file path of the background asset.
27  * @param weatherEffect the weather effect type.
28  */
29 data class WallpaperFileModel (
30     val foregroundAbsolutePath: String?,
31     val backgroundAbsolutePath: String?,
32     val weatherEffect: WallpaperInfoContract.WeatherEffect? = null
33 )
34 
35 /**
36  * Model representing wallpapers with images loaded in memory.
37  *
38  * @param foreground Bitmap of the foreground image.
39  * @param background Bitmap of the background image.
40  * @param weatherEffect the weather effect type.
41  */
42 data class WallpaperImageModel (
43     val foreground: Bitmap,
44     val background: Bitmap,
45     val weatherEffect: WallpaperInfoContract.WeatherEffect? = null
46 )
47