content
stringlengths
0
3.9M
path
stringlengths
4
242
contentHash
stringlengths
1
10
package com.cmoney.kolfanci.service.media import android.os.SystemClock import android.support.v4.media.session.PlaybackStateCompat /** * Useful extension methods for [PlaybackStateCompat]. */ inline val PlaybackStateCompat.isPrepared get() = (state == PlaybackStateCompat.STATE_BUFFERING) || (state == PlaybackStateCompat.STATE_PLAYING) || (state == PlaybackStateCompat.STATE_PAUSED) inline val PlaybackStateCompat.isPlaying get() = (state == PlaybackStateCompat.STATE_BUFFERING) || (state == PlaybackStateCompat.STATE_PLAYING) inline val PlaybackStateCompat.isPlayEnabled get() = (actions and PlaybackStateCompat.ACTION_PLAY != 0L) || ((actions and PlaybackStateCompat.ACTION_PLAY_PAUSE != 0L) && (state == PlaybackStateCompat.STATE_PAUSED)) /** * Calculates the current playback position based on last update time along with playback * state and speed. */ inline val PlaybackStateCompat.currentPlayBackPosition: Long get() = if (state == PlaybackStateCompat.STATE_PLAYING) { val timeDelta = SystemClock.elapsedRealtime() - lastPositionUpdateTime (position + (timeDelta * playbackSpeed)).toLong() } else { position }
Fanci/app/src/main/java/com/cmoney/kolfanci/service/media/PlaybackStateCompatExtension.kt
2422450659
package com.cmoney.kolfanci.service.media import android.net.Uri import kotlinx.coroutines.flow.StateFlow /** * 錄音與播放的介面 */ interface RecorderAndPlayer { /** * 開始錄音 */ fun startRecording() /** * 停止錄音 */ fun stopRecording() /** * 開始播放 */ fun startPlaying() /** * 暫停播放 */ fun pausePlaying() /** * 恢復播放 */ fun resumePlaying() /** * 停止播放 */ fun stopPlaying() /** * 停止錄音與播放 */ fun dismiss() /** * 獲得播放的總時長 * @return 播放時長(毫秒) */ fun getPlayingDuration(): Long /** * 獲得當前播放的秒數 * @return 播放當前毫秒數的狀態流 */ fun getPlayingCurrentMilliseconds(): StateFlow<Long> /** * 獲得當前錄音的秒數 * @return 錄音當前毫秒數的狀態流 */ fun getRecordingCurrentMilliseconds(): StateFlow<Long> /** * 獲得錄音的總時長 * @return 錄音時長(毫秒) */ fun getRecordingDuration(): Long fun getFileUri(): Uri? /** * 刪除錄音檔案 */ fun deleteFile() /** * 播放給定的錄音檔 * @param uri 音檔的uri */ fun startPlaying(uri: Uri) /** * 刪除給定的錄音檔 * @param uri 音檔的uri */ fun deleteFile(uri: Uri) }
Fanci/app/src/main/java/com/cmoney/kolfanci/service/media/RecorderAndPlayer.kt
3769625787
package com.cmoney.kolfanci.service.media import android.app.PendingIntent import android.content.Context import android.graphics.Bitmap import android.graphics.drawable.Drawable import android.net.Uri import android.support.v4.media.session.MediaControllerCompat import android.support.v4.media.session.MediaSessionCompat import com.bumptech.glide.Glide import com.bumptech.glide.load.engine.DiskCacheStrategy import com.bumptech.glide.request.RequestOptions import com.bumptech.glide.request.target.CustomTarget import com.bumptech.glide.request.transition.Transition import com.cmoney.kolfanci.R import com.google.android.exoplayer2.Player import com.google.android.exoplayer2.ui.PlayerNotificationManager import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.MainScope const val NOW_PLAYING_CHANNEL_ID = "com.cmoney.kolfanci.media.NOW_PLAYING" const val NOW_PLAYING_NOTIFICATION_ID = 0x123 class MusicNotificationManager( private val context: Context, sessionToken: MediaSessionCompat.Token, notificationListener: PlayerNotificationManager.NotificationListener ) : CoroutineScope by MainScope() { private val notificationManager: PlayerNotificationManager init { val mediaController = MediaControllerCompat(context, sessionToken) notificationManager = PlayerNotificationManager.Builder( context, NOW_PLAYING_NOTIFICATION_ID, NOW_PLAYING_CHANNEL_ID ) .setNotificationListener(notificationListener) .setChannelNameResourceId(R.string.channel_media) .setChannelDescriptionResourceId(R.string.channel_media_description) .setMediaDescriptionAdapter(DescriptionAdapter(mediaController)).build() notificationManager.setMediaSessionToken(sessionToken) notificationManager.setSmallIcon(R.drawable.notification) } fun hideNotification() { notificationManager.setPlayer(null) } fun showNotificationForPlayer(player: Player) { notificationManager.setPlayer(player) } private inner class DescriptionAdapter(private val controller: MediaControllerCompat) : PlayerNotificationManager.MediaDescriptionAdapter { var currentIconUri: Uri? = null var currentBitmap: Bitmap? = null override fun createCurrentContentIntent(player: Player): PendingIntent? = controller.sessionActivity override fun getCurrentContentText(player: Player) = controller.metadata.description.subtitle.toString() override fun getCurrentContentTitle(player: Player): CharSequence = controller.metadata.description.title.toString() override fun getCurrentLargeIcon( player: Player, callback: PlayerNotificationManager.BitmapCallback ): Bitmap? { val iconUri = controller.metadata.description.iconUri return if (currentIconUri != iconUri || currentBitmap == null) { // Cache the bitmap for the current song so that successive calls to // `getCurrentLargeIcon` don't cause the bitmap to be recreated. currentIconUri = iconUri if (iconUri != null) { resolveUriAsBitmap(iconUri, callback) } null } else { currentBitmap } } private fun resolveUriAsBitmap( uri: Uri, callback: PlayerNotificationManager.BitmapCallback ) { Glide.with(context).applyDefaultRequestOptions(glideOptions) .asBitmap() .load(uri) .into(object : CustomTarget<Bitmap>() { override fun onResourceReady( resource: Bitmap, transition: Transition<in Bitmap>? ) { callback.onBitmap(resource) } override fun onLoadCleared(placeholder: Drawable?) { } }) } } } private const val NOTIFICATION_LARGE_ICON_SIZE = 144 // px private val glideOptions = RequestOptions() // .fallback(R.drawable.exo_media_action_repeat_off) .diskCacheStrategy(DiskCacheStrategy.RESOURCE)
Fanci/app/src/main/java/com/cmoney/kolfanci/service/media/MusicNotificationManager.kt
2998555036
package com.cmoney.kolfanci.service.media import android.graphics.Bitmap import android.net.Uri import android.support.v4.media.MediaMetadataCompat /** * Helper extension to convert a potentially null [String] to a [Uri] falling back to [Uri.EMPTY] */ fun String?.toUri(): Uri = this?.let { Uri.parse(it) } ?: Uri.EMPTY /** * Useful extensions for [MediaMetadataCompat]. */ inline val MediaMetadataCompat.id: String? get() = getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID) inline val MediaMetadataCompat.title: String? get() = getString(MediaMetadataCompat.METADATA_KEY_TITLE) inline val MediaMetadataCompat.artist: String? get() = getString(MediaMetadataCompat.METADATA_KEY_ARTIST) inline val MediaMetadataCompat.duration get() = getLong(MediaMetadataCompat.METADATA_KEY_DURATION) inline val MediaMetadataCompat.album: String? get() = getString(MediaMetadataCompat.METADATA_KEY_ALBUM) inline val MediaMetadataCompat.author: String? get() = getString(MediaMetadataCompat.METADATA_KEY_AUTHOR) inline val MediaMetadataCompat.writer: String? get() = getString(MediaMetadataCompat.METADATA_KEY_WRITER) inline val MediaMetadataCompat.composer: String? get() = getString(MediaMetadataCompat.METADATA_KEY_COMPOSER) inline val MediaMetadataCompat.compilation: String? get() = getString(MediaMetadataCompat.METADATA_KEY_COMPILATION) inline val MediaMetadataCompat.date: String? get() = getString(MediaMetadataCompat.METADATA_KEY_DATE) inline val MediaMetadataCompat.year: String? get() = getString(MediaMetadataCompat.METADATA_KEY_YEAR) inline val MediaMetadataCompat.genre: String? get() = getString(MediaMetadataCompat.METADATA_KEY_GENRE) inline val MediaMetadataCompat.trackNumber get() = getLong(MediaMetadataCompat.METADATA_KEY_TRACK_NUMBER) inline val MediaMetadataCompat.trackCount get() = getLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS) inline val MediaMetadataCompat.discNumber get() = getLong(MediaMetadataCompat.METADATA_KEY_DISC_NUMBER) inline val MediaMetadataCompat.albumArtist: String? get() = getString(MediaMetadataCompat.METADATA_KEY_ALBUM_ARTIST) inline val MediaMetadataCompat.art: Bitmap get() = getBitmap(MediaMetadataCompat.METADATA_KEY_ART) inline val MediaMetadataCompat.artUri: Uri get() = this.getString(MediaMetadataCompat.METADATA_KEY_ART_URI).toUri() inline val MediaMetadataCompat.albumArt: Bitmap? get() = getBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART) inline val MediaMetadataCompat.albumArtUri: Uri get() = this.getString(MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI).toUri() inline val MediaMetadataCompat.userRating get() = getLong(MediaMetadataCompat.METADATA_KEY_USER_RATING) inline val MediaMetadataCompat.rating get() = getLong(MediaMetadataCompat.METADATA_KEY_RATING) inline val MediaMetadataCompat.displayTitle: String? get() = getString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE) inline val MediaMetadataCompat.displaySubtitle: String? get() = getString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE) inline val MediaMetadataCompat.displayDescription: String? get() = getString(MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION) inline val MediaMetadataCompat.displayIcon: Bitmap get() = getBitmap(MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON) inline val MediaMetadataCompat.displayIconUri: Uri get() = this.getString(MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON_URI).toUri() //inline val MediaMetadataCompat.mediaUri: Uri // get() = this.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_URI).toUri() inline val MediaMetadataCompat.downloadStatus get() = getLong(MediaMetadataCompat.METADATA_KEY_DOWNLOAD_STATUS) const val NO_GET = "Property does not have a 'get'" inline var MediaMetadataCompat.Builder.id: String @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID, value) } inline var MediaMetadataCompat.Builder.title: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_TITLE, value) } inline var MediaMetadataCompat.Builder.artist: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_ARTIST, value) } inline var MediaMetadataCompat.Builder.album: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_ALBUM, value) } inline var MediaMetadataCompat.Builder.duration: Long @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putLong(MediaMetadataCompat.METADATA_KEY_DURATION, value) } inline var MediaMetadataCompat.Builder.genre: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_GENRE, value) } inline var MediaMetadataCompat.Builder.mediaUri: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_MEDIA_URI, value) } inline var MediaMetadataCompat.Builder.albumArtUri: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI, value) } inline var MediaMetadataCompat.Builder.albumArt: Bitmap? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, value) } inline var MediaMetadataCompat.Builder.trackNumber: Long @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putLong(MediaMetadataCompat.METADATA_KEY_TRACK_NUMBER, value) } inline var MediaMetadataCompat.Builder.trackCount: Long @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS, value) } inline var MediaMetadataCompat.Builder.displayTitle: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, value) } inline var MediaMetadataCompat.Builder.displaySubtitle: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, value) } inline var MediaMetadataCompat.Builder.displayDescription: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION, value) } inline var MediaMetadataCompat.Builder.displayIconUri: String? @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON_URI, value) } inline var MediaMetadataCompat.Builder.downloadStatus: Long @Deprecated(NO_GET, level = DeprecationLevel.ERROR) get() = throw IllegalAccessException("Cannot get from MediaMetadataCompat.Builder") set(value) { putLong(MediaMetadataCompat.METADATA_KEY_DOWNLOAD_STATUS, value) }
Fanci/app/src/main/java/com/cmoney/kolfanci/service/media/MediaMetadataCompatExt.kt
2265458034
package com.cmoney.kolfanci.service.media import android.content.ComponentName import android.content.Context import android.support.v4.media.MediaBrowserCompat import android.support.v4.media.MediaMetadataCompat import android.support.v4.media.session.MediaControllerCompat import android.support.v4.media.session.PlaybackStateCompat import android.util.Log import androidx.lifecycle.MutableLiveData /** * 相當於媒體播放器的 遙控器 */ class MusicServiceConnection(val context: Context, serviceComponent: ComponentName) { private val TAG = MusicServiceConnection::class.java.simpleName val isConnected = MutableLiveData<Boolean>() .apply { postValue(false) } val playbackState = MutableLiveData<PlaybackStateCompat>() .apply { postValue(EMPTY_PLAYBACK_STATE) } val nowPlaying = MutableLiveData<MediaMetadataCompat>() .apply { postValue(NOTHING_PLAYING) } val shuffleModeState = MutableLiveData<Int>() .apply { postValue(PlaybackStateCompat.SHUFFLE_MODE_NONE) } val repeatModeState = MutableLiveData<Int>() .apply { postValue(PlaybackStateCompat.REPEAT_MODE_NONE) } lateinit var mediaController: MediaControllerCompat val transportControls: MediaControllerCompat.TransportControls get() = mediaController.transportControls private val mediaBrowserConnectionCallback = MediaBrowserConnectionCallback(context) private val mediaBrowser = MediaBrowserCompat( context, serviceComponent, mediaBrowserConnectionCallback, null ).apply { connect() } private inner class MediaBrowserConnectionCallback(private val context: Context) : MediaBrowserCompat.ConnectionCallback() { /** * Invoked after [MediaBrowserCompat.connect] when the request has successfully * completed. */ override fun onConnected() { Log.d(TAG, "MediaBrowserConnectionCallback onConnected") // Get a MediaController for the MediaSession. mediaController = MediaControllerCompat(context, mediaBrowser.sessionToken).apply { registerCallback(MediaControllerCallback()) } isConnected.postValue(true) } /** * Invoked when the client is disconnected from the media browser. */ override fun onConnectionSuspended() { Log.d(TAG, "MediaBrowserConnectionCallback onConnectionSuspended") isConnected.postValue(false) } /** * Invoked when the connection to the media browser failed. */ override fun onConnectionFailed() { Log.d(TAG, "MediaBrowserConnectionCallback onConnectionFailed") isConnected.postValue(false) } } private inner class MediaControllerCallback : MediaControllerCompat.Callback() { override fun onPlaybackStateChanged(state: PlaybackStateCompat?) { Log.d(TAG, "MediaControllerCallback onPlaybackStateChanged:$state") val playbackStateCompat = state ?: EMPTY_PLAYBACK_STATE playbackState.postValue(state ?: EMPTY_PLAYBACK_STATE) sendWidgetPlaybackStateIntent(playbackStateCompat) } override fun onMetadataChanged(metadata: MediaMetadataCompat?) { Log.d(TAG, "MediaControllerCallback onMetadataChanged:$metadata") nowPlaying.postValue( if (metadata?.id == null) { NOTHING_PLAYING } else { sendWidgetMetadataIntent(metadata) metadata } ) } override fun onShuffleModeChanged(shuffleMode: Int) { super.onShuffleModeChanged(shuffleMode) Log.d(TAG, "MediaControllerCallback onShuffleModeChanged:$shuffleMode") shuffleModeState.postValue(shuffleMode) } override fun onRepeatModeChanged(repeatMode: Int) { super.onRepeatModeChanged(repeatMode) Log.d(TAG, "MediaControllerCallback onRepeatModeChanged:$repeatMode") repeatModeState.postValue(repeatMode) } } //Widget 交互處理 - 播放狀態 private fun sendWidgetPlaybackStateIntent(playbackStateCompat: PlaybackStateCompat) { } //Widget 交互處理 - 播放媒體資訊 private fun sendWidgetMetadataIntent(metadata: MediaMetadataCompat) { } companion object { // For Singleton instantiation. @Volatile private var instance: MusicServiceConnection? = null fun getInstance(context: Context, serviceComponent: ComponentName) = instance ?: synchronized(this) { instance ?: MusicServiceConnection(context, serviceComponent) .also { instance = it } } } } @Suppress("PropertyName") val NOTHING_PLAYING: MediaMetadataCompat = MediaMetadataCompat.Builder() .putString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID, "") .putLong(MediaMetadataCompat.METADATA_KEY_DURATION, 0) .build() @Suppress("PropertyName") val EMPTY_PLAYBACK_STATE: PlaybackStateCompat = PlaybackStateCompat.Builder() .setState(PlaybackStateCompat.STATE_NONE, 0, 0f) .build()
Fanci/app/src/main/java/com/cmoney/kolfanci/service/media/MusicServiceConnection.kt
1274410706
package com.cmoney.kolfanci.devtools.ui import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.platform.LocalContext import com.cmoney.fanciapi.fanci.model.ColorTheme import com.cmoney.kolfanci.devtools.model.takeScreenshot import com.cmoney.kolfanci.devtools.ui.data.ScreenshotTarget import com.cmoney.kolfanci.model.usecase.ThemeUseCase import com.cmoney.kolfanci.ui.theme.DefaultThemeColor import com.cmoney.kolfanci.ui.theme.FanciTheme import kotlinx.coroutines.delay import org.koin.core.context.GlobalContext /** * 螢幕截圖畫面(會依據設定的目標依序切換並截圖儲存) * * @param targets 目標集合 */ @Composable fun ScreenshotScreen( targets: List<ScreenshotTarget> = ScreenshotScreenDefaults.targets ) { val themeUseCase = remember { GlobalContext.get().get<ThemeUseCase>() } var theme by remember { mutableStateOf(DefaultThemeColor) } val context = LocalContext.current var index by remember { mutableStateOf(0) } var themeIndex by remember { mutableStateOf(-1) } val target = targets[index] FanciTheme( fanciColor = theme ) { target.content() } LaunchedEffect(key1 = index, key2 = targets) { // wait for content create delay(500L) takeScreenshot(context = context, relativePath = target.relativePath, name = target.name) val targetIndex = index.plus(1) if (targetIndex <= targets.lastIndex) { // 切換內容 index = targetIndex } else { // 切換 theme val colorThemes = ColorTheme.values() val themeTargetIndex = themeIndex.plus(1) if (themeTargetIndex <= colorThemes.lastIndex) { val colorTheme = colorThemes[themeTargetIndex] themeUseCase.fetchThemeConfig(colorTheme) .onSuccess { theme = it.theme themeIndex = themeTargetIndex index = 0 } } else { // TODO end of screenshot flow } } } }
Fanci/app/src/debug/java/com/cmoney/kolfanci/devtools/ui/ScreenshotScreen.kt
2982638081
package com.cmoney.kolfanci.devtools.ui import com.cmoney.kolfanci.devtools.ui.data.ScreenshotTarget import com.cmoney.kolfanci.ui.screens.follow.FollowScreenPreview import com.cmoney.kolfanci.ui.screens.group.dialog.GroupItemDialogScreenPreview import com.cmoney.kolfanci.ui.screens.group.search.DiscoverGroupLatestScreenPreview import com.cmoney.kolfanci.ui.screens.group.search.DiscoverGroupPopularScreenPreview import com.cmoney.kolfanci.ui.screens.group.setting.GroupSettingScreenPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.channel.ChannelSettingScreenPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.channel.add.AddCategoryScreenPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.groupsetting.GroupSettingBackgroundPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.groupsetting.GroupSettingDescViewPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.groupsetting.avatar.GroupSettingAvatarScreenPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.groupsetting.theme.GroupSettingThemeScreenPreview import com.cmoney.kolfanci.ui.screens.group.setting.group.openness.GroupOpennessScreenPreview import com.cmoney.kolfanci.ui.screens.my.AccountManageScreenPreview import com.cmoney.kolfanci.ui.screens.my.MyScreenPreview import com.cmoney.kolfanci.ui.screens.my.avatar.AvatarNicknameChangeScreenPreview import com.cmoney.kolfanci.ui.screens.shared.dialog.LoginDialogScreenPreview import com.cmoney.kolfanci.ui.screens.shared.edit.EditInputScreenPreview /** * 螢幕截圖元件預設 */ object ScreenshotScreenDefaults { /** * 預設目標 * * [分類來源](https://docs.google.com/spreadsheets/d/1GQMoQ6K35_oMpRRrLY0SmdSrfpKieP6JyMZj_MwjV4U/edit?usp=sharing) */ val targets: List<ScreenshotTarget> by lazy { mutableListOf<ScreenshotTarget>().apply { addAll(mainTargets) addAll(discoverTargets) addAll(groupTargets) addAll(myTargets) addAll(chatTargets) addAll(postTargets) addAll(settingTargets) } } private val mainTargets by lazy { listOf( ScreenshotTarget( relativePath = "main", name = "FollowScreen" ) { FollowScreenPreview() } ) } private val discoverTargets by lazy { listOf( ScreenshotTarget( relativePath = "discover", name = "DiscoverGroupPopularScreen" ) { DiscoverGroupPopularScreenPreview() }, ScreenshotTarget( relativePath = "discover", name = "DiscoverGroupLatestScreen" ) { DiscoverGroupLatestScreenPreview() } ) } private val groupTargets by lazy { listOf( ScreenshotTarget( relativePath = "group", name = "GroupItemDialogScreen" ) { GroupItemDialogScreenPreview() } ) } private val myTargets by lazy { listOf( ScreenshotTarget( relativePath = "my", name = "MyScreen" ) { MyScreenPreview() }, ScreenshotTarget( relativePath = "my", name = "AccountManageScreen" ) { AccountManageScreenPreview() }, ScreenshotTarget( relativePath = "my", name = "AvatarNicknameChangeScreen" ) { AvatarNicknameChangeScreenPreview() }, ScreenshotTarget( relativePath = "my", name = "LoginDialogScreen" ) { LoginDialogScreenPreview() } ) } private val chatTargets by lazy { listOf<ScreenshotTarget>() } private val postTargets by lazy { listOf<ScreenshotTarget>() } private val settingTargets by lazy { listOf( ScreenshotTarget( relativePath = "setting", name = "GroupSettingScreen" ) { GroupSettingScreenPreview() }, //頻道管理 ScreenshotTarget( relativePath = "setting/channel_manage", name = "ChannelSettingScreen" ) { ChannelSettingScreenPreview() }, //頻道管理 - 新增分類 ScreenshotTarget( relativePath = "setting/channel_manage", name = "AddCategoryScreen" ) { AddCategoryScreenPreview() }, ScreenshotTarget( relativePath = "setting", name = "GroupSettingAvatarScreen" ) { GroupSettingAvatarScreenPreview() }, ScreenshotTarget( relativePath = "setting", name = "GroupSettingBackground" ) { GroupSettingBackgroundPreview() }, ScreenshotTarget( relativePath = "setting", name = "GroupSettingDescScreen" ) { GroupSettingDescViewPreview() }, ScreenshotTarget( relativePath = "setting", name = "GroupSettingThemeScreen" ) { GroupSettingThemeScreenPreview() }, ScreenshotTarget( relativePath = "setting", name = "GroupSettingNameScreen" ) { EditInputScreenPreview() }, ScreenshotTarget( relativePath = "setting", name = "GroupOpennessScreen" ) { GroupOpennessScreenPreview() } ) } }
Fanci/app/src/debug/java/com/cmoney/kolfanci/devtools/ui/ScreenshotScreenDefaults.kt
4049934706
package com.cmoney.kolfanci.devtools.ui import android.Manifest import android.os.Build import android.os.Bundle import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material.Button import androidx.compose.material.ButtonDefaults import androidx.compose.material.Scaffold import androidx.compose.material.Text import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.sp import com.cmoney.kolfanci.R import com.cmoney.kolfanci.model.viewmodel.GroupViewModel import com.cmoney.kolfanci.ui.main.MainViewModel import com.cmoney.kolfanci.ui.theme.FanciTheme import com.cmoney.kolfanci.ui.theme.LocalColor import com.cmoney.xlogin.base.BaseWebLoginActivity import com.google.accompanist.permissions.ExperimentalPermissionsApi import com.google.accompanist.permissions.isGranted import com.google.accompanist.permissions.rememberPermissionState import com.socks.library.KLog import org.koin.androidx.viewmodel.ext.android.viewModel /** * 顯示螢幕截圖的頁面 */ class ScreenshotActivity: BaseWebLoginActivity() { private val TAG = ScreenshotActivity::class.java.simpleName private val globalViewModel by viewModel<MainViewModel>() private val globalGroupViewModel by viewModel<GroupViewModel>() @OptIn(ExperimentalPermissionsApi::class) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { FanciTheme { Scaffold( modifier = Modifier .fillMaxSize() .background(LocalColor.current.primary) ) { paddingValue -> Box( modifier = Modifier .padding(paddingValue) .fillMaxSize() ) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { ScreenshotScreen() } else { val permissionState = rememberPermissionState(permission = Manifest.permission.WRITE_EXTERNAL_STORAGE) if (permissionState.status.isGranted) { ScreenshotScreen() } else { Column(modifier = Modifier.align(Alignment.Center)) { Text( text = stringResource(id = R.string.must_provide_external_storage_permission), fontSize = 16.sp ) Button( modifier = Modifier.align(Alignment.CenterHorizontally), colors = ButtonDefaults.buttonColors( backgroundColor = LocalColor.current.env_80 ), onClick = { permissionState.launchPermissionRequest() } ) { Text( text = stringResource(id = R.string.provide_permission), fontSize = 14.sp ) } } } } } } } } } //==================== auto login callback ==================== override fun autoLoginFailCallback() { KLog.e(TAG, "autoLoginFailCallback") globalViewModel.loginFail("autoLoginFailCallback") } override fun loginCancel() { KLog.i(TAG, "loginCancel") globalViewModel.loginFail("loginCancel") } override fun loginFailCallback(errorMessage: String) { KLog.e(TAG, "loginFailCallback:$errorMessage") globalViewModel.loginFail(errorMessage) } override fun loginSuccessCallback() { KLog.i(TAG, "loginSuccessCallback") globalViewModel.loginSuccess() globalGroupViewModel.fetchMyGroup() } }
Fanci/app/src/debug/java/com/cmoney/kolfanci/devtools/ui/ScreenshotActivity.kt
2505669801
package com.cmoney.kolfanci.devtools.ui.data import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable /** * 螢幕截圖目標 */ interface ScreenshotTarget { /** * 位於哪個資料夾下(相對路徑), 空字串的話則直接儲存於預設的資料夾下 */ val relativePath: String /** * 檔案名稱(會加上時間戳記後綴) * * ex: XXX-millisTime.jpg */ val name: String /** * 顯示內容 */ val content: @Composable () -> Unit } /** * 創建螢幕截圖目標 * * @param relativePath 檔案儲存相對路徑 * @param name 檔案名稱 * @param content 顯示內容 * @return 螢幕截圖目標 */ fun ScreenshotTarget( relativePath: String = "", name: String, content: @Composable () -> Unit ): ScreenshotTarget { return ScreenshotTargetImpl(relativePath = relativePath, name = name, content = content) } /** * 螢幕截圖目標內部實作 * * @property relativePath 檔案路徑 * @property name 檔案名稱 * @property content 顯示內容 */ @Immutable private data class ScreenshotTargetImpl( override val relativePath: String, override val name: String, override val content: @Composable () -> Unit ): ScreenshotTarget
Fanci/app/src/debug/java/com/cmoney/kolfanci/devtools/ui/data/ScreenshotTarget.kt
1967819646
package com.cmoney.kolfanci.devtools.model import android.annotation.TargetApi import android.app.Activity import android.content.Context import android.graphics.Bitmap import android.graphics.Rect import android.os.Build import android.os.Environment import android.os.Looper import android.view.PixelCopy import androidx.core.os.HandlerCompat import androidx.core.view.drawToBitmap import com.cmoney.tools_android.util.notifyGalleryAddPic import com.cmoney.tools_android.util.storeImageAboveQ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.suspendCancellableCoroutine import kotlinx.coroutines.withContext import java.io.File import java.io.IOException import kotlin.coroutines.resume import kotlin.coroutines.resumeWithException private const val ROOT_FOLDER_NAME = "fanci_verify_screenshots" /** * 螢幕截圖 * * @param context android context * @param relativePath 儲存的相對路徑 "分類/子分類..." * @param name 儲存的原始檔案名稱(會加上時間戳記: xxx-millisTime.jpg) */ suspend fun takeScreenshot(context: Context, relativePath: String, name: String) { val activity = context as? Activity ?: return val fileName = "$name-${System.currentTimeMillis()}.jpg" try { val bitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { takeScreenshotAboveO(activity = activity) } else { takeScreenshotBelowO(activity) } withContext(Dispatchers.IO) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { context.contentResolver.storeImageAboveQ( folderName = if (relativePath.isNotEmpty()) { "$ROOT_FOLDER_NAME/$relativePath" } else { ROOT_FOLDER_NAME }, fileName = fileName, outputBitmap = bitmap ) } else { context.storeImageBelowQ( relativePath = relativePath, fileName = fileName, bitmap = bitmap ) } } } catch (e: Exception) { // TODO screenshot flow failed } } private fun Context.storeImageBelowQ( relativePath: String, fileName: String, bitmap: Bitmap ) { val picturesFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) picturesFolder.mkdir() val testFolder = File(picturesFolder, ROOT_FOLDER_NAME) testFolder.mkdir() val saveFolder = if (relativePath.isNotEmpty()) { File(testFolder, relativePath).apply { mkdirs() } } else { testFolder } val saveFile = File(saveFolder, fileName) val isSuccess = saveFile.outputStream().use { outputStream -> val saveSuccess = bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream) outputStream.flush() saveSuccess } if (isSuccess) { notifyGalleryAddPic(saveFile.absolutePath) } } @TargetApi(Build.VERSION_CODES.O) private suspend fun takeScreenshotAboveO(activity: Activity): Bitmap { val window = activity.window val rootView = window.decorView.rootView val bitmap = Bitmap.createBitmap(rootView.width, rootView.height, Bitmap.Config.ARGB_8888) val locationOfViewInWindow = IntArray(2) rootView.getLocationInWindow(locationOfViewInWindow) return suspendCancellableCoroutine { continuation -> PixelCopy.request( window, Rect( locationOfViewInWindow[0], locationOfViewInWindow[1], locationOfViewInWindow[0] + rootView.width, locationOfViewInWindow[1] + rootView.height ), bitmap, { copyResult -> if (copyResult == PixelCopy.SUCCESS) { continuation.resume(bitmap) } else { continuation.resumeWithException( IOException("PixelCopy something went wrong. resultCode is $copyResult") ) } }, HandlerCompat.createAsync(Looper.getMainLooper()) ) } } private fun takeScreenshotBelowO(activity: Activity): Bitmap { val window = activity.window val rootView = window.decorView.rootView rootView.isDrawingCacheEnabled = true val bitmap = Bitmap.createBitmap(rootView.drawingCache) rootView.isDrawingCacheEnabled = false rootView.drawToBitmap() return bitmap }
Fanci/app/src/debug/java/com/cmoney/kolfanci/devtools/model/TakeScreenshot.kt
2070230129
package com.cmoney.fancylog import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing documentation](http://d.android.com/tools/testing). */ @RunWith(AndroidJUnit4::class) class ExampleInstrumentedTest { @Test fun useAppContext() { // Context of the app under test. val appContext = InstrumentationRegistry.getInstrumentation().targetContext assertEquals("com.cmoney.fancylog.test", appContext.packageName) } }
Fanci/fancylog/src/androidTest/java/com/cmoney/fancylog/ExampleInstrumentedTest.kt
2795848795
package com.cmoney.fancylog import org.junit.Test import org.junit.Assert.* /** * Example local unit test, which will execute on the development machine (host). * * See [testing documentation](http://d.android.com/tools/testing). */ class ExampleUnitTest { @Test fun addition_isCorrect() { assertEquals(4, 2 + 2) } }
Fanci/fancylog/src/test/java/com/cmoney/fancylog/ExampleUnitTest.kt
4196767654
package com.cmoney.fancylog.model.data import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 事件參數 From * * @property parameterName 參數名稱 */ sealed class From(val parameterName: String) : Parcelable { fun asParameters(): Map<String, String> { return mapOf("from" to parameterName) } /** * 尚未加入任何社團的畫面 */ @Parcelize object NonGroup : From(parameterName = "NonGroup") /** * 熱門社團 */ @Parcelize object Hot : From(parameterName = "Hot") /** * 最新社團 */ @Parcelize object New : From(parameterName = "New") /** * 側欄 */ @Parcelize object SideBar : From(parameterName = "SideBar") /** * 點擊『完全公開』 */ @Parcelize object Public : From(parameterName = "Public") /** * 點擊『不公開』 */ @Parcelize object NonPublic : From(parameterName = "NonPublic") /** * 新增審核題目 */ @Parcelize object AddQuestion : From(parameterName = "AddQuestion") /** * 略過新增 */ @Parcelize object Skip : From(parameterName = "Skip") /** * 建立社團名稱 */ @Parcelize object GroupName : From(parameterName = "GroupName") /** * 建立社團權限 */ @Parcelize object GroupOpenness : From(parameterName = "GroupOpenness") /** * 建立社團佈置 */ @Parcelize object GroupArrangement : From(parameterName = "GroupArrangement") /** * 通知中心 */ @Parcelize object Notification : From(parameterName = "Notification") /** * 自己的貼文 */ @Parcelize object Poster : From(parameterName = "Poster") /** * 別人的貼文 */ @Parcelize object OthersPost : From(parameterName = "OthersPost") /** * 濫發廣告訊息 */ @Parcelize object Spam : From(parameterName = "Spam") /** * 傳送色情訊息 */ @Parcelize object SexualContent : From(parameterName = "SexualContent") /** * 騷擾行為 */ @Parcelize object Harassment : From(parameterName = "Harassment") /** * 內容與主題無關 */ @Parcelize object UnrelatedContent : From(parameterName = "UnrelatedContent") /** * 其他 */ @Parcelize object Other : From(parameterName = "Other") /** * 任一篇貼文的「顯示更多」鍵 */ @Parcelize object Post : From(parameterName = "Post") /** * 任一篇留言的「顯示更多」鍵 */ @Parcelize object Comment : From(parameterName = "Comment") /** * 在貼文外層點擊點點點 */ @Parcelize object PostList : From(parameterName = "PostList") /** * 在貼文內層點擊點點點 */ @Parcelize object InnerLayer : From(parameterName = "InnerLayer") /** * 在訊息點擊圖片 */ @Parcelize object Message : From(parameterName = "Message") /** * 全部 */ @Parcelize object All : From(parameterName = "All") /** * 聊天 */ @Parcelize object Chat : From(parameterName = "Chat") /** * 邀請連結 */ @Parcelize object Link : From(parameterName = "Link") /** * 新增分類 */ @Parcelize object Create : From(parameterName = "Create") /** * 編輯分類 */ @Parcelize object Edit : From(parameterName = "Edit") /** * 頻道排序 */ @Parcelize object Channel : From(parameterName = "Channel") /** * 分類排序 */ @Parcelize object Category : From(parameterName = "Category") /** * 社團簡介頁 */ @Parcelize object GroupIntroduction : From(parameterName = "GroupIntroduction") /** * 建立社團|社團圖示 */ @Parcelize object AddGroupIcon : From(parameterName = "AddGroupIcon") /** * 編輯社團|社團圖示 */ @Parcelize object EditGroupIcon : From(parameterName = "EditGroupIcon") /** * 建立社團|社團背景 */ @Parcelize object AddHomeBackground : From(parameterName = "AddHomeBackground") /** * 編輯社團|社團背景 */ @Parcelize object EditHomeBackground : From(parameterName = "EditHomeBackground") /** * 新增頻道 */ @Parcelize object AddChannel : From(parameterName = "AddChannel") /** * 頻道名稱 */ @Parcelize object ChannelName : From(parameterName = "ChannelName") /** * 頻道版面 */ @Parcelize object ChannelLayout : From(parameterName = "ChannelLayout") /** * 頻道公開度 */ @Parcelize object ChannelOpenness : From(parameterName = "ChannelOpenness") /** * 不公開頻道基本/中階/進階權限新增成員 */ @Parcelize object ChannelAddMember : From(parameterName = "ChannelAddMember") /** * 不公開頻道基本/中階/進階權限新增角色 */ @Parcelize object ChannelAddRole : From(parameterName = "ChannelAddRole") /** * 不公開頻道基本/中階/進階權限新增VIP方案 */ @Parcelize object ChannelAddVIP : From(parameterName = "ChannelAddVIP") /** * 頻道管理員新增角色 */ @Parcelize object AdminAddRole : From(parameterName = "AdminAddRole") /** * 建立角色 */ @Parcelize object AddRole : From(parameterName = "AddRole") /** * 角色名稱(建立角色) */ @Parcelize object RoleName : From(parameterName = "RoleName") /** * 角色名稱(編輯角色) */ @Parcelize object EditName : From(parameterName = "EditName") /** * 新增成員(建立角色) */ @Parcelize object RoleAddMember : From(parameterName = "RoleAddMember") /** * 頻道排序 */ @Parcelize object ChannelOrder : From(parameterName = "ChannelOrder") /** * 分類排序 */ @Parcelize object CategoryOrder : From(parameterName = "CategoryOrder") /** * 新增分類 */ @Parcelize object AddCategory : From(parameterName = "AddCategory") /** * 新增分類時輸入名稱 */ @Parcelize object KeyinCategoryName : From(parameterName = "KeyinCategoryName") /** * 編輯分類名稱 */ @Parcelize object EditCategoryName : From(parameterName = "EditCategoryName") /** * 建立社團|新增審核題目 */ @Parcelize object CreateGroupAddQuestion : From(parameterName = "CreateGroup.AddQuestion") /** * 編輯社團|新增審核題目 */ @Parcelize object GroupSettingsAddQuestion : From(parameterName = "GroupSettings.AddQuestion") /** * 所有成員_新增角色 */ @Parcelize object AllMembersAddRole : From(parameterName = "AllMembersAddRole") /** * VIP方案名稱 */ @Parcelize object VIPName : From(parameterName = "VIPName") /** * VIP方案選擇頻道權限 */ @Parcelize object VIPPermissions : From(parameterName = "VIPPermissions") /** * 頻道管理 */ @Parcelize object ChannelManagement : From(parameterName = "ChannelManagement") /** * 所有成員 */ @Parcelize object AllMembers : From(parameterName = "AllMembers") /** * 角色管理 */ @Parcelize object RoleManagement : From(parameterName = "RoleManagement") }
Fanci/fancylog/src/main/java/com/cmoney/fancylog/model/data/From.kt
1865866494
package com.cmoney.fancylog.model.data /** * 頁面事件 * * @property eventName 事件名稱 */ sealed class Page(val eventName: String) { /** * 新手流程.第一頁_觀看 */ object Onbording1 : Page(eventName = "Onbording.1") /** * 新手流程.第二頁_觀看 */ object Onbording2 : Page(eventName = "Onbording.2") /** * 建立社團.社團名稱_觀看 */ object CreateGroupGroupName : Page(eventName = "CreateGroup.GroupName") /** * 建立社團.社團權限_觀看 */ object CreateGroupGroupOpenness : Page(eventName = "CreateGroup.GroupOpenness") /** * 建立社團.權限.新增審核題目_觀看 */ object CreateGroupGroupOpennessAddReviewQuestion : Page(eventName = "CreateGroup.GroupOpenness.AddReviewQuestion") /** * 建立社團.佈置_觀看 */ object CreateGroupGroupArrangement : Page(eventName = "CreateGroup.GroupArrangement") /** * 建立社團.佈置.社團圖示_觀看 */ object CreateGroupGroupArrangementGroupIcon : Page(eventName = "CreateGroup.GroupArrangement.GroupIcon") /** * 建立社團.佈置.首頁背景_觀看 */ object CreateGroupGroupArrangementHomeBackground : Page(eventName = "CreateGroup.GroupArrangement.HomeBackground") /** * 建立社團.佈置.主題色彩_觀看 */ object CreateGroupGroupArrangementThemeColor : Page(eventName = "CreateGroup.GroupArrangement.ThemeColor") /** * 通知中心_觀看 */ object Notification : Page(eventName = "Notification") /** * 會員頁_觀看 */ object MemberPage : Page(eventName = "MemberPage") /** * 會員頁.未登入頁_觀看 */ object NotLoggedInPage : Page(eventName = "NotLoggedInPage") /** * 會員頁.頭像與暱稱_觀看 */ object MemberPageAvatarAndNickname : Page(eventName = "MemberPage.AvatarAndNickname") /** * 會員頁.帳號管理_觀看 */ object MemberPageAccountManagement : Page(eventName = "MemberPage.AccountManagement") /** * 貼文牆 */ object PostWall : Page(eventName = "PostWall") /** * 貼文.內頁_觀看 */ object PostInnerPage : Page(eventName = "Post.InnerPage") /** * 發表貼文_觀看 */ object PublishPost : Page(eventName = "PublishPost") /** * 編輯貼文_觀看 */ object EditPost : Page(eventName = "EditPost") /** * 貼文.圖片_觀看 */ object PostImage : Page(eventName = "Post.Image") /** * 內容搜尋_全部_觀看 */ object ContentSearch_All : Page(eventName = "ContentSearch_All") /** * 內容搜尋_聊天_觀看 */ object ContentSearch_Chat : Page(eventName = "ContentSearch_Chat") /** * 內容搜尋_貼文_觀看 */ object ContentSearch_Post : Page(eventName = "ContentSearch_Post") /** * 探索社團.熱門社團_觀看 */ object ExploreGroupPopularGroups : Page(eventName = "ExploreGroup.PopularGroups") /** * 探索社團.最新社團_觀看 */ object ExploreGroupNewestGroups : Page(eventName = "ExploreGroup.NewestGroups") /** * 社團_觀看 */ object Group : Page(eventName = "Group") /** * 社團.設定.社團設定.社團名稱_觀看 */ object GroupSettingsGroupSettingsGroupName : Page(eventName = "Group.Settings.GroupSettings.GroupName") /** * 社團.設定.社團設定.社團簡介_觀看 */ object GroupSettingsGroupSettingsGroupIntroduction : Page(eventName = "Group.Settings.GroupSettings.GroupIntroduction") /** * 社團.設定.社團設定.社團圖示_觀看 */ object GroupSettingsGroupSettingsGroupIcon : Page(eventName = "Group.Settings.GroupSettings.GroupIcon") /** * 社團.設定.社團設定.首頁背景_觀看 */ object GroupSettingsGroupSettingsHomeBackground : Page(eventName = "Group.Settings.GroupSettings.HomeBackground") /** * 社團.設定.社團設定.主題色彩_觀看 */ object GroupSettingsGroupSettingsThemeColor : Page(eventName = "Group.Settings.GroupSettings.ThemeColor") /** * 社團.設定.社團公開度.公開度_觀看 */ object GroupSettingsGroupOpennessOpenness : Page(eventName = "Group.Settings.GroupOpenness.Openness") /** * 社團.設定.社團公開度.不公開.審核題目.新增審核題目_觀看 */ object GroupSettingsGroupOpennessNonPublicReviewQuestionAddReviewQuestion : Page(eventName = "Group.Settings.GroupOpenness.NonPublic.ReviewQuestion.AddReviewQuestion") /** * 社團.設定.社團公開度.不公開.審核題目.編輯_觀看 */ object GroupSettingsGroupOpennessNonPublicReviewQuestionEdit : Page(eventName = "Group.Settings.GroupOpenness.NonPublic.ReviewQuestion.Edit") /** * 社團.設定.頻道管理_觀看 */ object GroupSettingsChannelManagement : Page(eventName = "Group.Settings.ChannelManagement") /** * 社團.設定.頻道管理.新增分類_觀看 */ object GroupSettingsChannelManagementAddCategory : Page(eventName = "Group.Settings.ChannelManagement.AddCategory") /** * 社團.設定.頻道管理.新增分類.分類名稱_觀看 */ object GroupSettingsChannelManagementAddCategoryCategoryName : Page(eventName = "Group.Settings.ChannelManagement.AddCategory.CategoryName") /** * 社團.設定.頻道管理.編輯分類.分類名稱_觀看 */ object GroupSettingsChannelManagementEditCategoryCategoryName : Page(eventName = "Group.Settings.ChannelManagement.EditCategory.CategoryName") /** * 社團.設定.頻道管理.編輯分類_觀看 */ object GroupSettingsChannelManagementEditCategory : Page(eventName = "Group.Settings.ChannelManagement.EditCategory") /** * 社團.設定.頻道管理.新增頻道_觀看 */ object GroupSettingsChannelManagementAddChannel : Page(eventName = "Group.Settings.ChannelManagement.AddChannel") /** * 社團.設定.頻道管理.編輯頻道_觀看 */ object GroupSettingsChannelManagementEditChannel : Page(eventName = "Group.Settings.ChannelManagement.EditChannel") /** * 社團.設定.頻道管理.樣式_觀看 */ object GroupSettingsChannelManagementStyle : Page(eventName = "Group.Settings.ChannelManagement.Style") /** * 社團.設定.頻道管理.樣式.頻道名稱_觀看 */ object GroupSettingsChannelManagementStyleChannelName : Page(eventName = "Group.Settings.ChannelManagement.Style.ChannelName") /** * 社團.設定.頻道管理.樣式.頻道版面_觀看 */ object GroupSettingsChannelManagementStyleLayoutSetting : Page(eventName = "Group.Settings.ChannelManagement.Style.LayoutSetting") /** * 社團.設定.頻道管理.權限_觀看 */ object GroupSettingsChannelManagementPermissions : Page(eventName = "Group.Settings.ChannelManagement.Permissions") /** * 社團.設定.頻道管理.權限.公開度_觀看 */ object GroupSettingsChannelManagementPermissionsOpenness : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Openness") /** * 社團.設定.頻道管理.權限.不公開.成員_觀看 */ object GroupSettingsChannelManagementPermissionsPrivateMembers : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Private.Members") /** * 社團.設定.頻道管理.權限.不公開.新增成員_觀看 */ object GroupSettingsChannelManagementPermissionsPrivateAddMember : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Private.AddMember") /** * 社團.設定.頻道管理.權限.不公開.角色_觀看 */ object GroupSettingsChannelManagementPermissionsPrivateRoles : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Private.Roles") /** * 社團.設定.頻道管理.權限.不公開.新增角色_觀看 */ object GroupSettingsChannelManagementPermissionsPrivateAddRole : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Private.AddRole") /** * 社團.設定.頻道管理.權限.不公開.VIP_觀看 */ object GroupSettingsChannelManagementPermissionsPrivateVIP : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Private.VIP") /** * 社團.設定.頻道管理.權限.不公開.新增方案_觀看 */ object GroupSettingsChannelManagementPermissionsPrivateAddPlan : Page(eventName = "Group.Settings.ChannelManagement.Permissions.Private.AddPlan") /** * 社團.設定.頻道管理.管理員_觀看 */ object GroupSettingsChannelManagementAdmin : Page(eventName = "Group.Settings.ChannelManagement.Admin") /** * 社團.設定.頻道管理.管理員.新增角色_觀看 */ object GroupSettingsChannelManagementAdminAddRole : Page(eventName = "Group.Settings.ChannelManagement.Admin.AddRole") /** * 社團.設定.提醒設定_觀看 */ object GroupSettingsNotificationSetting : Page(eventName = "Group.Settings.NotificationSetting") /** * 社團.設定.角色管理.新增角色.樣式_觀看 */ object GroupSettingsRoleManagementAddRoleStyle : Page(eventName = "Group.Settings.RoleManagement.AddRole.Style") /** * 社團.設定.角色管理.新增角色.樣式.角色名稱_觀看 */ object GroupSettingsRoleManagementAddRoleStyleRoleName : Page(eventName = "Group.Settings.RoleManagement.AddRole.Style.RoleName") /** * 社團.設定.角色管理.新增角色.權限_觀看 */ object GroupSettingsRoleManagementAddRolePermissions : Page(eventName = "Group.Settings.RoleManagement.AddRole.Permissions") /** * 社團.設定.角色管理.新增角色.成員_觀看 */ object GroupSettingsRoleManagementAddRoleMembers : Page(eventName = "Group.Settings.RoleManagement.AddRole.Members") /** * 社團.設定.角色管理.新增角色.成員列表_觀看 */ object GroupSettingsRoleManagementAddRoleMembersList : Page(eventName = "Group.Settings.RoleManagement.AddRole.MembersList") /** * 社團.設定.角色管理.編輯角色.樣式_觀看 */ object GroupSettingsRoleManagementEditRoleStyle : Page(eventName = "Group.Settings.RoleManagement.EditRole.Style") /** * 社團.設定.角色管理.編輯角色.樣式.角色名稱_觀看 */ object GroupSettingsRoleManagementEditRoleStyleRoleName : Page(eventName = "Group.Settings.RoleManagement.EditRole.Style.RoleName") /** * 社團.設定.角色管理.編輯角色.權限_觀看 */ object GroupSettingsRoleManagementEditRolePermissions : Page(eventName = "Group.Settings.RoleManagement.EditRole.Permissions") /** * 社團.設定.角色管理.編輯角色.成員_觀看 */ object GroupSettingsRoleManagementEditRoleMembers : Page(eventName = "Group.Settings.RoleManagement.EditRole.Members") /** * 社團.設定.角色管理.編輯角色.成員列表_觀看 */ object GroupSettingsRoleManagementEditRoleMembersList : Page(eventName = "Group.Settings.RoleManagement.EditRole.MembersList") /** * 社團.設定.所有成員_觀看 */ object GroupSettingsAllMembers : Page(eventName = "Group.Settings.AllMembers") /** * 社團.設定.所有成員.管理_觀看 */ object GroupSettingsAllMembersManage : Page(eventName = "Group.Settings.AllMembers.Manage") /** * 社團.設定.加入申請_觀看 */ object GroupSettingsJoinApplication : Page(eventName = "Group.Settings.JoinApplication") /** * 社團.設定.VIP.方案管理_觀看 */ object GroupSettingsVIPPlanMNG : Page(eventName = "Group.Settings.VIP.PlanMNG") /** * 社團.設定.VIP.資訊_觀看 */ object GroupSettingsVIPINF : Page(eventName = "Group.Settings.VIP.INF") /** * 社團.設定.VIP.資訊.VIP名稱_觀看 */ object GroupSettingsVIPINFVIPName : Page(eventName = "Group.Settings.VIP.INF.VIPName") /** * 社團.設定.VIP.權限_觀看 */ object GroupSettingsVIPPermission : Page(eventName = "Group.Settings.VIP.Permission") /** * 社團.設定.VIP.成員_觀看 */ object GroupSettingsVIPMembers : Page(eventName = "Group.Settings.VIP.Members") /** * 社團.設定.檢舉審核_觀看 */ object GroupSettingsReportReview : Page(eventName = "Group.Settings.ReportReview") /** * 社團.設定.檢舉審核.禁言_觀看 */ object GroupSettingsReportReviewMute : Page(eventName = "Group.Settings.ReportReview.Mute") /** * 社團.設定.檢舉審核.踢除_觀看 */ object GroupSettingsReportReviewKickOut : Page(eventName = "Group.Settings.ReportReview.KickOut") /** * 社團.設定.禁言列表_觀看 */ object GroupSettingsMuteList : Page(eventName = "Group.Settings.MuteList") }
Fanci/fancylog/src/main/java/com/cmoney/fancylog/model/data/Page.kt
1676919869
package com.cmoney.fancylog.model.data import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 點擊事件 * * @property eventName 事件名稱 */ sealed class Clicked(val eventName: String) : Parcelable { /** * 新手流程.第1頁立即開始_點擊 */ @Parcelize object OnbordingStart1 : Clicked(eventName = "Onbording.Start1") /** * 新手流程.第2頁立即開始_點擊 */ @Parcelize object OnbordingStart2 : Clicked(eventName = "Onbording.Start2") /** * 首頁.待審核中社團_點擊 */ @Parcelize object HomeWaitToJoinGroup : Clicked(eventName = "Home_WaitToJoinGroup") /** * 建立社團_點擊 */ @Parcelize object CreateGroup : Clicked(eventName = "CreateGroup") /** * 建立社團_社團名稱_點擊 */ @Parcelize object CreateGroupName : Clicked(eventName = "CreateGroup_Name") /** * 建立社團_權限_點擊 */ @Parcelize object CreateGroupOpenness : Clicked(eventName = "CreateGroup_Openness") /** * 建立社團_新增審核題目彈窗_點擊 */ @Parcelize object CreateGroupAddQuestionPopup : Clicked(eventName = "CreateGroup_AddQuestionPopup") /** * 建立社團_新增審核題目_點擊 */ @Parcelize object CreateGroupAddReviewQuestion : Clicked(eventName = "CreateGroup_AddReviewQuestion") /** * 建立社團.新增審核題目_新增題目_點擊 */ @Parcelize object CreateGroupQuestionKeyin : Clicked(eventName = "CreateGroup_QuestionKeyin") /** * 建立社團.審核題目_管理題目_點擊 */ @Parcelize object CreateGroupQuestionManage : Clicked(eventName = "CreateGroup_QuestionManage") /** * 建立社團.審核題目_編輯題目_點擊 */ @Parcelize object CreateGroupQuestionEdit : Clicked(eventName = "CreateGroup_QuestionEdit") /** * 建立社團.審核題目_刪除題目_點擊 */ @Parcelize object CreateGroupQuestionRemove : Clicked(eventName = "CreateGroup_QuestionRemove") /** * 建立社團_設定社團圖示_點擊 */ @Parcelize object CreateGroupGroupIcon : Clicked(eventName = "CreateGroup_GroupIcon") /** * 建立社團_社團圖示更換圖片_點擊 */ @Parcelize object CreateGroupChangeGroupIconPicture : Clicked(eventName = "CreateGroup_ChangeGroupIconPicture") /** * 建立社團_設定首頁背景_點擊 */ @Parcelize object CreateGroupHomeBackground : Clicked(eventName = "CreateGroup_HomeBackground") /** * 建立社團_首頁背景更換圖片_點擊 */ @Parcelize object CreateGroupChangeHomeBackgroundPicture : Clicked(eventName = "CreateGroup_ChangeHomeBackgroundPicture") /** * 建立社團_設定主題色彩_點擊 */ @Parcelize object CreateGroupThemeColor : Clicked(eventName = "CreateGroup_ThemeColor") /** * 建立社團.設定主題色彩_主題_點擊 */ @Parcelize object CreateGroupThemeColorTheme : Clicked(eventName = "CreateGroup.ThemeColor_Theme") /** * 建立社團.設定主題色彩_主題套用_點擊 */ @Parcelize object CreateGroupThemeColorThemeApply : Clicked(eventName = "CreateGroup.ThemeColor.Theme_Apply") /** * 建立社團流程_下一步/建立社團_點擊 */ @Parcelize object CreateGroupNextStep : Clicked(eventName = "CreateGroup_NextStep") /** * 建立社團流程_上一步_點擊 */ @Parcelize object CreateGroupBackward : Clicked(eventName = "CreateGroup_Backward") /** * 側邊欄_社團_點擊 */ @Parcelize object SideBarGroup : Clicked(eventName = "SideBar_Group") /** * 側邊欄_會員頁_點擊 */ @Parcelize object SideBarMemberPage : Clicked(eventName = "SideBar_MemberPage") /** * 側邊欄_通知中心_點擊 */ @Parcelize object SideBarNotification : Clicked(eventName = "SideBar_Notification") /** * 會員頁_信箱登入_點擊 */ @Parcelize object EmailLogin : Clicked(eventName = "EmailLogin") /** * 會員頁_社群帳號登入_點擊 */ @Parcelize object SocialAccountLogin : Clicked(eventName = "SocialAccountLogin") /** * 通知中心_通知_點擊 */ @Parcelize object NotificationNotification : Clicked(eventName = "Notification_Notification") /** * 通知中心_無權使用_點擊 */ @Parcelize object CannotUse : Clicked(eventName = "CannotUse") /** * 會員頁_首頁_點擊 */ @Parcelize object MemberPageHome : Clicked(eventName = "MemberPage_Home") /** * 會員頁_頭像與暱稱_點擊 */ @Parcelize object MemberPageAvatarAndNickname : Clicked(eventName = "MemberPage_AvatarAndNickname") /** * 頭像與暱稱_頭像_點擊 */ @Parcelize object AvatarAndNicknameAvatar : Clicked(eventName = "AvatarAndNickname_Avatar") /** * 頭像與暱稱_暱稱_點擊 */ @Parcelize object AvatarAndNicknameNickname : Clicked(eventName = "AvatarAndNickname_Nickname") /** * 會員頁_帳號管理_點擊 */ @Parcelize object MemberPageAccountManagement : Clicked(eventName = "MemberPage_AccountManagement") /** * 帳號管理_登出帳號_點擊 */ @Parcelize object AccountManagementLogout : Clicked(eventName = "AccountManagement_Logout") /** * 登出帳號_確定登出_點擊 */ @Parcelize object LogoutConfirmLogout : Clicked(eventName = "Logout_ConfirmLogout") /** * 登出帳號_返回_點擊 */ @Parcelize object LogoutReturn : Clicked(eventName = "Logout_Return") /** * 帳號管理_刪除帳號_點擊 */ @Parcelize object AccountManagementDeleteAccount : Clicked(eventName = "AccountManagement_DeleteAccount") /** * 刪除帳號_確定刪除_點擊 */ @Parcelize object DeleteAccountConfirmDelete : Clicked(eventName = "DeleteAccount_ConfirmDelete") /** * 刪除帳號_返回_點擊 */ @Parcelize object DeleteAccountReturn : Clicked(eventName = "DeleteAccount_Return") /** * 會員頁_服務條款_點擊 */ @Parcelize object MemberPageTermsOfService : Clicked(eventName = "MemberPage_TermsOfService") /** * 會員頁_隱私權政策_點擊 */ @Parcelize object MemberPagePrivacyPolicy : Clicked(eventName = "MemberPage_PrivacyPolicy") /** * 會員頁_著作權政策_點擊 */ @Parcelize object MemberPageCopyrightPolicy : Clicked(eventName = "MemberPage_CopyrightPolicy") /** * 會員頁_意見回饋_點擊 */ @Parcelize object MemberPageFeedback : Clicked(eventName = "MemberPage_Feedback") /** * 貼文_進入內層_點擊 */ @Parcelize object PostEnterInnerLayer : Clicked(eventName = "Post_EnterInnerLayer") /** * 貼文_發表貼文_點擊 */ @Parcelize object PostPublishPost : Clicked(eventName = "Post_PublishPost") /** * 貼文_編輯貼文_點擊 */ @Parcelize object PostEditPost : Clicked(eventName = "Post_EditPost") /** * 貼文_置頂貼文_點擊 */ @Parcelize object PostPinPost : Clicked(eventName = "Post_PinPost") /** * 貼文.置頂貼文_確定置頂_點擊 */ @Parcelize object PostPinPostConfirmPin : Clicked(eventName = "Post.PinPost_ConfirmPin") /** * 貼文.置頂貼文_取消_點擊 */ @Parcelize object PostPinPostCancel : Clicked(eventName = "Post.PinPost_Cancel") /** * 貼文_取消置頂貼文_點擊 */ @Parcelize object PostUnpinPost : Clicked(eventName = "Post_UnpinPost") /** * 貼文.取消置頂貼文_確定取消_點擊 */ @Parcelize object PostUnpinPostConfirmUnpin : Clicked(eventName = "Post.UnpinPost_ConfirmUnpin") /** * 貼文.取消置頂貼文_返回_點擊 */ @Parcelize object PostUnpinPostReturn : Clicked(eventName = "Post.UnpinPost_Return") /** * 貼文_檢舉貼文_點擊 */ @Parcelize object PostReportPost : Clicked(eventName = "Post_ReportPost") /** * 貼文_刪除貼文_點擊 */ @Parcelize object PostDeletePost : Clicked(eventName = "Post_DeletePost") /** * 貼文.刪除貼文_確定刪除_點擊 */ @Parcelize object PostDeletePostConfirmDelete : Clicked(eventName = "Post.DeletePost_ConfirmDelete") /** * 貼文.刪除貼文_取消_點擊 */ @Parcelize object PostDeletePostCancel : Clicked(eventName = "Post.DeletePost_Cancel") /** * 留言_回覆_點擊 */ @Parcelize object CommentReply : Clicked(eventName = "Comment_Reply") /** * 留言_插入圖片_點擊 */ @Parcelize object CommentInsertImage : Clicked(eventName = "Comment_InsertImage") /** * 留言_傳送鍵_點擊 */ @Parcelize object CommentSendButton : Clicked(eventName = "Comment_SendButton") /** * 留言_編輯留言_點擊 */ @Parcelize object CommentEditComment : Clicked(eventName = "Comment_EditComment") /** * 留言_檢舉留言_點擊 */ @Parcelize object CommentReportComment : Clicked(eventName = "Comment_ReportComment") /** * 留言_刪除留言_點擊 */ @Parcelize object CommentDeleteComment : Clicked(eventName = "Comment_DeleteComment") /** * 留言_編輯回覆_點擊 */ @Parcelize object CommentEditReply : Clicked(eventName = "Comment_EditReply") /** * 留言_檢舉回覆_點擊 */ @Parcelize object CommentReportReply : Clicked(eventName = "Comment_ReportReply") /** * 留言_刪除回覆_點擊 */ @Parcelize object CommentDeleteReply : Clicked(eventName = "Comment_DeleteReply") /** * 貼文_選取照片_點擊 */ @Parcelize object PostSelectPhoto : Clicked(eventName = "Post_SelectPhoto") /** * 貼文_發布_點擊 */ @Parcelize object PostPublish : Clicked(eventName = "Post_Publish") /** * 貼文_捨棄_點擊 */ @Parcelize object PostDiscard : Clicked(eventName = "Post_Discard") /** * 貼文_繼續編輯_點擊 */ @Parcelize object PostContinueEditing : Clicked(eventName = "Post_ContinueEditing") /** * 貼文.空白貼文_修改_點擊 */ @Parcelize object PostBlankPostEdit : Clicked(eventName = "Post.BlankPost_Edit") /** * 訊息_插入圖片_點擊 */ @Parcelize object MessageInsertImage : Clicked(eventName = "Message_InsertImage") /** * 訊息_傳送鍵_點擊 */ @Parcelize object MessageSendButton : Clicked(eventName = "Message_SendButton") /** * 訊息_常壓訊息_點擊 */ @Parcelize object MessageLongPressMessage : Clicked(eventName = "Message_LongPressMessage") /** * 訊息.常壓訊息_表情符號_點擊 */ @Parcelize object MessageLongPressMessageEmoji : Clicked(eventName = "Message.LongPressMessage_Emoji") /** * 訊息.常壓訊息_回覆_點擊 */ @Parcelize object MessageLongPressMessageReply : Clicked(eventName = "Message.LongPressMessage_Reply") /** * 訊息.常壓訊息_複製訊息_點擊 */ @Parcelize object MessageLongPressMessageCopyMessage : Clicked(eventName = "Message.LongPressMessage_CopyMessage") /** * 訊息.常壓訊息_置頂訊息_點擊 */ @Parcelize object MessageLongPressMessagePinMessage : Clicked(eventName = "Message.LongPressMessage_PinMessage") /** * 訊息.常壓訊息_檢舉_點擊 */ @Parcelize object MessageLongPressMessageReport : Clicked(eventName = "Message.LongPressMessage_Report") /** * 訊息.常壓訊息_刪除訊息_點擊 */ @Parcelize object MessageLongPressMessageDeleteMessage : Clicked(eventName = "Message.LongPressMessage_DeleteMessage") /** * 訊息.常壓訊息_收回訊息_點擊 */ @Parcelize object MessageLongPressMessageUnsendMessage : Clicked(eventName = "Message.LongPressMessage_UnsendMessage") /** * 檢舉_確定檢舉_點擊 */ @Parcelize object ReportConfirmReport : Clicked(eventName = "Report_ConfirmReport") /** * 檢舉_取消_點擊 */ @Parcelize object ReportCancel : Clicked(eventName = "Report_Cancel") /** * 檢舉原因_原因_點擊 */ @Parcelize object ReportReasonReason : Clicked(eventName = "ReportReason_Reason") /** * 檢舉原因_取消檢舉_點擊 */ @Parcelize object ReportReasonCancelReport : Clicked(eventName = "ReportReason_CancelReport") /** * 刪除訊息_確定刪除_點擊 */ @Parcelize object DeleteMessageConfirmDelete : Clicked(eventName = "DeleteMessage_ConfirmDelete") /** * 刪除訊息_取消_點擊 */ @Parcelize object DeleteMessageCancel : Clicked(eventName = "DeleteMessage_Cancel") /** * 訊息_重試_點擊 */ @Parcelize object MessageRetry : Clicked(eventName = "Message_Retry") /** * 顯示更多_點擊 */ @Parcelize object ShowMore : Clicked(eventName = "ShowMore") /** * 更多功能(點點點)_點擊 */ @Parcelize object MoreAction : Clicked(eventName = "MoreAction") /** * 圖片_點擊 */ @Parcelize object Image : Clicked(eventName = "Image") /** * 表情符號_現有的表情_點擊 */ @Parcelize object ExistingEmoji : Clicked(eventName = "ExistingEmoji") /** * 表情符號_新增表情_點擊 */ @Parcelize object AddEmoji : Clicked(eventName = "AddEmoji") /** * 內容搜尋_點擊 */ @Parcelize object ContentSearch : Clicked(eventName = "ContentSearch") /** * 內容搜尋_搜尋_點擊 */ @Parcelize object ContentSearchSearch : Clicked(eventName = "ContentSearch_Search") /** * 內容搜尋_全部_點擊 */ @Parcelize object ContentSearchAll : Clicked(eventName = "ContentSearch_All") /** * 內容搜尋_貼文_點擊 */ @Parcelize object ContentSearchPost : Clicked(eventName = "ContentSearch_Post") /** * 內容搜尋_聊天_點擊 */ @Parcelize object ContentSearchChat : Clicked(eventName = "ContentSearch_Chat") /** * 內容搜尋_查看_點擊 */ @Parcelize object ContentSearchView : Clicked(eventName = "ContentSearch_View") /** * 探索社團_熱門社團_點擊 */ @Parcelize object ExploreGroupPopularGroups : Clicked(eventName = "ExploreGroup_PopularGroups") /** * 探索社團_最新社團_點擊 */ @Parcelize object ExploreGroupNewestGroups : Clicked(eventName = "ExploreGroup_NewestGroups") /** * 社團_加入_點擊 */ @Parcelize object GroupJoin : Clicked(eventName = "Group_Join") /** * 社團_申請加入_點擊 */ @Parcelize object GroupApplyToJoin : Clicked(eventName = "Group_ApplyToJoin") /** * 社團_進入社團_點擊 */ @Parcelize object GroupEnter : Clicked(eventName = "Group_enter") /** * 社團已被解散彈窗_點擊 */ @Parcelize object AlreadyDissolve : Clicked(eventName = "AlreadyDissolve") /** * 社團_社團設定_點擊 */ @Parcelize object GroupGroupSettings : Clicked(eventName = "Group_GroupSettings") /** * 社團設定_邀請社團成員_點擊 */ @Parcelize object GroupSettingsInviteGroupMember : Clicked(eventName = "GroupSettings_InviteGroupMember") /** * 社團設定_退出社團_點擊 */ @Parcelize object GroupSettingsLeaveGroup : Clicked(eventName = "GroupSettings_LeaveGroup") /** * 退出社團_確定退出_點擊 */ @Parcelize object LeaveGroupConfirmLeave : Clicked(eventName = "LeaveGroup_ConfirmLeave") /** * 退出社團_取消退出_點擊 */ @Parcelize object LeaveGroupCancelLeave : Clicked(eventName = "LeaveGroup_CancelLeave") /** * 社團設定_社團設定_點擊 */ @Parcelize object GroupSettingsGroupSettingsPage : Clicked(eventName = "GroupSettings_GroupSettingsPage") /** * 社團名稱_點擊 */ @Parcelize object GroupName : Clicked(eventName = "GroupName") /** * 社團名稱_名稱_點擊 */ @Parcelize object GroupNameName : Clicked(eventName = "GroupName_Name") /** * 社團簡介_點擊 */ @Parcelize object GroupIntroduction : Clicked(eventName = "GroupIntroduction") /** * 社團簡介_簡介_點擊 */ @Parcelize object GroupIntroductionIntroduction : Clicked(eventName = "GroupIntroduction_Introduction") /** * 社團圖示_點擊 */ @Parcelize object GroupIcon : Clicked(eventName = "GroupIcon") /** * 社團圖示_更換圖片_點擊 */ @Parcelize object GroupIconChangePicture : Clicked(eventName = "GroupIcon_ChangePicture") /** * 首頁背景_點擊 */ @Parcelize object HomeBackground : Clicked(eventName = "HomeBackground") /** * 首頁背景_更換圖片_點擊 */ @Parcelize object HomeBackgroundChangePicture : Clicked(eventName = "HomeBackground_ChangePicture") /** * 主題色彩_點擊 */ @Parcelize object ThemeColor : Clicked(eventName = "ThemeColor") /** * 主題色彩_主題_點擊 */ @Parcelize object ThemeColorTheme : Clicked(eventName = "ThemeColor_Theme") /** * 主題色彩_主題套用_點擊 */ @Parcelize object ThemeColorThemeApply : Clicked(eventName = "ThemeColor.Theme_Apply") /** * 解散社團_點擊 */ @Parcelize object DissolveGroup : Clicked(eventName = "DissolveGroup") /** * 解散社團_返回_點擊 */ @Parcelize object DissolveGroupReturn : Clicked(eventName = "DissolveGroup_Return") /** * 解散社團_確定解散_點擊 */ @Parcelize object DissolveGroupConfirmDissolution : Clicked(eventName = "DissolveGroup_ConfirmDissolution") /** * 確定解散_返回_點擊 */ @Parcelize object ConfirmDissolutionReturn : Clicked(eventName = "ConfirmDissolution_Return") /** * 確定解散_確定解散_點擊 */ @Parcelize object ConfirmDissolutionConfirmDissolution : Clicked(eventName = "ConfirmDissolution_ConfirmDissolution") /** * 社團設定_社團公開度_點擊 */ @Parcelize object GroupSettingsGroupOpenness : Clicked(eventName = "GroupSettings_GroupOpenness") /** * 社團權限_公開度_點擊 */ @Parcelize object GroupPermissionsOpenness : Clicked(eventName = "GroupPermissions_Openness") /** * 社團公開度_新增審核題目_點擊 */ @Parcelize object GroupOpennessAddReviewQuestion : Clicked(eventName = "GroupOpenness_AddReviewQuestion") /** * 社團公開度_新增題目_點擊 */ @Parcelize object GroupOpennessAddQuestion : Clicked(eventName = "GroupOpenness_AddQuestion") /** * 社團公開度_暫時跳過_點擊 */ @Parcelize object GroupOpennessSkipForNow : Clicked(eventName = "GroupOpenness_SkipForNow") /** * 社團公開度_管理_點擊 */ @Parcelize object GroupOpennessManage : Clicked(eventName = "GroupOpenness_Manage") /** * 社團公開度.管理_編輯_點擊 */ @Parcelize object GroupOpennessManageEdit : Clicked(eventName = "GroupOpenness.Manage_Edit") /** * 社團公開度.管理_移除_點擊 */ @Parcelize object GroupOpennessManageRemove : Clicked(eventName = "GroupOpenness.Manage_Remove") /** * 題目_文字區_點擊 */ @Parcelize object QuestionTextArea : Clicked(eventName = "Question_TextArea") /** * 社團設定_頻道管理_點擊 */ @Parcelize object GroupSettingsChannelManagement : Clicked(eventName = "GroupSettings_ChannelManagement") /** * 頻道管理_新增分類_點擊 */ @Parcelize object ChannelManagementAddCategory : Clicked(eventName = "ChannelManagement_AddCategory") /** * 頻道管理_編輯分類_點擊 */ @Parcelize object ChannelManagementEditCategory : Clicked(eventName = "ChannelManagement_EditCategory") /** * 分類名稱_點擊 */ @Parcelize object CategoryName : Clicked(eventName = "CategoryName") /** * 分類名稱內層輸入框_點擊 */ @Parcelize object CategoryNameNameKeyIn : Clicked(eventName = "CategoryName_NameKeyIn") /** * 頻道管理_編輯排序_點擊 */ @Parcelize object ChannelManagementEditOrder : Clicked(eventName = "ChannelManagement_EditOrder") /** * 頻道管理_編輯排序選項_點擊 */ @Parcelize object ChannelManagementOrderOption : Clicked(eventName = "ChannelManagement_OrderOption") /** * 頻道管理_刪除分類_點擊 */ @Parcelize object ChannelManagementDeleteCategory : Clicked(eventName = "ChannelManagement_DeleteCategory") /** * 頻道管理_新增頻道_點擊 */ @Parcelize object ChannelManagementAddChannel : Clicked(eventName = "ChannelManagement_AddChannel") /** * 頻道管理_編輯頻道_點擊 */ @Parcelize object ChannelManagementEditChannel : Clicked(eventName = "ChannelManagement_EditChannel") /** * 頻道管理_樣式_點擊 */ @Parcelize object ChannelManagementStyle : Clicked(eventName = "ChannelManagement_Style") /** * 樣式_頻道名稱_點擊 */ @Parcelize object StyleChannelName : Clicked(eventName = "Style_ChannelName") /** * 樣式_頻道名稱內層輸入框_點擊 */ @Parcelize object StyleChannelNameKeyIn : Clicked(eventName = "Style_ChannelNameKeyIn") /** * 樣式_頻道版面_點擊 */ @Parcelize object StyleLayout : Clicked(eventName = "Style_Layout") /** * 樣式_頻道版面聊天區優先_點擊 */ @Parcelize object StyleLayoutChatFirst : Clicked(eventName = "Style_LayoutChatFirst") /** * 樣式_頻道版面貼文區優先_點擊 */ @Parcelize object StyleLayoutPostFirst : Clicked(eventName = "Style_LayoutPostFirst") /** * 頻道管理_權限_點擊 */ @Parcelize object ChannelManagementPermissions : Clicked(eventName = "ChannelManagement_Permissions") /** * 權限_完全公開_點擊 */ @Parcelize object PermissionsPublic : Clicked(eventName = "Permissions_Public") /** * 權限_不公開_點擊 */ @Parcelize object PermissionsNonPublic : Clicked(eventName = "Permissions_NonPublic") /** * 不公開_任一權限_點擊 */ @Parcelize object NonPublicAnyPermission : Clicked(eventName = "NonPublic_AnyPermission") /** * 不公開.任一權限_成員_點擊 */ @Parcelize object NonPublicAnyPermissionMembers : Clicked(eventName = "NonPublic.AnyPermission_Members") /** * 不公開.任一權限.成員_新增成員_點擊 */ @Parcelize object NonPublicAnyPermissionMembersAddMember : Clicked(eventName = "NonPublic.AnyPermission.Members_AddMember") /** * 不公開.任一權限.成員_移除成員_點擊 */ @Parcelize object NonPublicAnyPermissionMembersRemoveMember : Clicked(eventName = "NonPublic.AnyPermission.Members_RemoveMember") /** * 不公開.任一權限_角色_點擊 */ @Parcelize object NonPublicAnyPermissionRoles : Clicked(eventName = "NonPublic.AnyPermission_Roles") /** * 不公開.任一權限.角色_新增角色_點擊 */ @Parcelize object NonPublicAnyPermissionRolesAddRole : Clicked(eventName = "NonPublic.AnyPermission.Roles_AddRole") /** * 不公開.任一權限.角色_移除角色_點擊 */ @Parcelize object NonPublicAnyPermissionRolesRemoveRole : Clicked(eventName = "NonPublic.AnyPermission.Roles_RemoveRole") /** * 不公開.任一權限_方案_點擊 */ @Parcelize object NonPublicAnyPermissionPlan : Clicked(eventName = "NonPublic.AnyPermission_Plan") /** * 不公開.任一權限.方案_新增方案_點擊 */ @Parcelize object NonPublicAnyPermissionPlanAddPlan : Clicked(eventName = "NonPublic.AnyPermission.Plan_AddPlan") /** * 不公開.任一權限.方案_移除方案_點擊 */ @Parcelize object NonPublicAnyPermissionPlanRemovePlan : Clicked(eventName = "NonPublic.AnyPermission.Plan_RemovePlan") /** * 頻道管理_管理員_點擊 */ @Parcelize object ChannelManagementAdmin : Clicked(eventName = "ChannelManagement_Admin") /** * 管理員_新增角色_點擊 */ @Parcelize object AdminAddRole : Clicked(eventName = "Admin_AddRole") /** * 管理員_移除角色_點擊 */ @Parcelize object AdminRemoveRole : Clicked(eventName = "Admin_RemoveRole") /** * 頻道管理_刪除頻道_點擊 */ @Parcelize object ChannelManagementDeleteChannel : Clicked(eventName = "ChannelManagement_DeleteChannel") /** * 社團設定_提醒設定_點擊 */ @Parcelize object GroupSettingsNotificationSetting : Clicked(eventName = "GroupSettings_NotificationSetting") /** * 提醒設定_任何新動態_點擊 */ @Parcelize object NotificationSettingAnyNews : Clicked(eventName = "NotificationSetting_AnyNews") /** * 提醒設定_只有新貼文_點擊 */ @Parcelize object NotificationSettingOnlyNewPost : Clicked(eventName = "NotificationSetting_OnlyNewPost") /** * 提醒設定_完全靜音_點擊 */ @Parcelize object NotificationSettingMute : Clicked(eventName = "NotificationSetting_Mute") /** * 提醒設定_前往系統設定_點擊 */ @Parcelize object NotificationSettingGoSystem : Clicked(eventName = "NotificationSetting_GoSystem") /** * 社團設定_角色管理_點擊 */ @Parcelize object GroupSettingsRoleManagement : Clicked(eventName = "GroupSettings_RoleManagement") /** * 角色管理_新增角色_點擊 */ @Parcelize object RoleManagementAddRole : Clicked(eventName = "RoleManagement_AddRole") /** * 角色管理_重新排列_點擊 */ @Parcelize object RoleManagementReshuffle : Clicked(eventName = "RoleManagement_Reshuffle") /** * 角色管理_編輯角色_點擊 */ @Parcelize object RoleManagementEditRole : Clicked(eventName = "RoleManagement_EditRole") /** * 角色管理.編輯角色_刪除角色_點擊 */ @Parcelize object RoleManagementEditRoleDeleteRole : Clicked(eventName = "RoleManagement.EditRole_DeleteRole") /** * 角色管理_樣式_點擊 */ @Parcelize object RoleManagementStyle : Clicked(eventName = "RoleManagement_Style") /** * 樣式_角色名稱_點擊 */ @Parcelize object StyleRoleName : Clicked(eventName = "Style_RoleName") /** * 樣式_角色名稱內層輸入框_點擊 */ @Parcelize object StyleRoleNameKeyIn : Clicked(eventName = "Style_RoleNameKeyIn") /** * 樣式_選取顏色_點擊 */ @Parcelize object StyleSelectColor : Clicked(eventName = "Style_SelectColor") /** * 角色管理_權限_點擊 */ @Parcelize object RoleManagementPermissions : Clicked(eventName = "RoleManagement_Permissions") /** * 角色管理_成員_點擊 */ @Parcelize object RoleManagementMembers : Clicked(eventName = "RoleManagement_Members") /** * 成員_新增成員_點擊 */ @Parcelize object MembersAddMember : Clicked(eventName = "Members_AddMember") /** * 成員_移除_點擊 */ @Parcelize object MembersRemove : Clicked(eventName = "Members_Remove") /** * 社團設定_所有成員_點擊 */ @Parcelize object GroupSettingsAllMembers : Clicked(eventName = "GroupSettings_AllMembers") /** * 所有成員_管理_點擊 */ @Parcelize object AllMembersManage : Clicked(eventName = "AllMembers_Manage") /** * 管理成員_移除_點擊 */ @Parcelize object ManageMembersRemove : Clicked(eventName = "ManageMembers_Remove") /** * 管理成員_新增成員_點擊 */ @Parcelize object ManageMembersAddMember : Clicked(eventName = "ManageMembers_AddMember") /** * 管理成員_禁言_點擊 */ @Parcelize object ManageMembersMute : Clicked(eventName = "ManageMembers_Mute") /** * 管理成員_踢出社團_點擊 */ @Parcelize object ManageMembersKickOut : Clicked(eventName = "ManageMembers_KickOut") /** * 社團設定_加入申請_點擊 */ @Parcelize object GroupSettingsJoinApplication : Clicked(eventName = "GroupSettings_JoinApplication") /** * 加入申請_批准加入_點擊 */ @Parcelize object JoinApplicationApproveJoin : Clicked(eventName = "JoinApplication_ApproveJoin") /** * 加入申請_拒絕加入_點擊 */ @Parcelize object JoinApplicationRejectJoin : Clicked(eventName = "JoinApplication_RejectJoin") /** * 加入申請_全選_點擊 */ @Parcelize object JoinApplicationSelectAll : Clicked(eventName = "JoinApplication_SelectAll") /** * 加入申請_取消全選_點擊 */ @Parcelize object JoinApplicationUnselectAll : Clicked(eventName = "JoinApplication_UnselectAll") /** * 社團設定_VIP方案管理_點擊 */ @Parcelize object GroupSettingsVIPPlanManagement : Clicked(eventName = "GroupSettings_VIPPlanManagement") /** * 方案管理_管理_點擊 */ @Parcelize object PlanManagementManage : Clicked(eventName = "PlanManagement_Manage") /** * 管理_資訊_點擊 */ @Parcelize object ManageInfo : Clicked(eventName = "Manage_Info") /** * 資訊_名稱_點擊 */ @Parcelize object InfoName : Clicked(eventName = "Info_Name") /** * 資訊_名稱內層輸入框_點擊 */ @Parcelize object InfoNameKeyIn : Clicked(eventName = "Info_NameKeyIn") /** * 管理_權限_點擊 */ @Parcelize object ManagePermissions : Clicked(eventName = "Manage_Permissions") /** * 權限_頻道_點擊 */ @Parcelize object PermissionsChannel : Clicked(eventName = "Permissions_Channel") /** * 權限.頻道_任一權限_點擊 */ @Parcelize object PermissionsChannelAnyPermission : Clicked(eventName = "Permissions.Channel_AnyPermission") /** * 管理_成員_點擊 */ @Parcelize object ManageMembers : Clicked(eventName = "Manage_Members") /** * 社團設定_檢舉審核_點擊 */ @Parcelize object GroupSettingsReportReview : Clicked(eventName = "GroupSettings_ReportReview") /** * 檢舉審核_懲處_點擊 */ @Parcelize object ReportReviewPunish : Clicked(eventName = "ReportReview_Punish") /** * 檢舉審核_不懲處_點擊 */ @Parcelize object ReportReviewNoPunish : Clicked(eventName = "ReportReview_NoPunish") /** * 懲處_禁言_點擊 */ @Parcelize object PunishMute : Clicked(eventName = "Punish_Mute") /** * 懲處.禁言_日期_點擊 */ @Parcelize object PunishMuteDate : Clicked(eventName = "Punish.Mute_Date") /** * 懲處.禁言_返回_點擊 */ @Parcelize object PunishMuteBack : Clicked(eventName = "Punish.Mute_Back") /** * 懲處_踢出社團_點擊 */ @Parcelize object PunishKickOut : Clicked(eventName = "Punish_KickOut") /** * 懲處.踢出社團_確定踢出_點擊 */ @Parcelize object PunishKickOutConfirmKickOut : Clicked(eventName = "Punish.KickOut_ConfirmKickOut") /** * 懲處.踢出社團_取消_點擊 */ @Parcelize object PunishKickOutCancel : Clicked(eventName = "Punish.KickOut_Cancel") /** * 懲處_返回_點擊 */ @Parcelize object PunishBack : Clicked(eventName = "Punish_Back") /** * 社團設定_禁言列表_點擊 */ @Parcelize object GroupSettingsMuteList : Clicked(eventName = "GroupSettings_MuteList") /** * 禁言列表_管理_點擊 */ @Parcelize object MuteListManage : Clicked(eventName = "MuteList_Manage") /** * 管理_解除禁言_點擊 */ @Parcelize object ManageUnmute : Clicked(eventName = "Manage_Unmute") /** * 管理_取消_點擊 */ @Parcelize object ManageCancel : Clicked(eventName = "Manage_Cancel") /** * 管理.解除禁言_確認解除_點擊 */ @Parcelize object ManageUnmuteConfirmUnmute : Clicked(eventName = "Manage.Unmute_ConfirmUnmute") /** * 管理.解除禁言_取消_點擊 */ @Parcelize object ManageUnmuteCancel : Clicked(eventName = "Manage.Unmute_Cancel") /** * 返回_點擊 */ @Parcelize object Return : Clicked(eventName = "Return") /** * 確認_點擊 */ @Parcelize object Confirm : Clicked(eventName = "Confirm") /** * 搜尋成員_點擊 */ @Parcelize object SearchMember : Clicked(eventName = "SearchMember") }
Fanci/fancylog/src/main/java/com/cmoney/fancylog/model/data/Clicked.kt
3599585380
package com.cmoney.fancyapi import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing documentation](http://d.android.com/tools/testing). */ @RunWith(AndroidJUnit4::class) class ExampleInstrumentedTest { @Test fun useAppContext() { // Context of the app under test. val appContext = InstrumentationRegistry.getInstrumentation().targetContext assertEquals("com.cmoney.fancyapi.test", appContext.packageName) } }
Fanci/fancyapi/src/androidTest/java/com/cmoney/fancyapi/ExampleInstrumentedTest.kt
4209586070
package com.cmoney.fancyapi import org.junit.Test import org.junit.Assert.* /** * Example local unit test, which will execute on the development machine (host). * * See [testing documentation](http://d.android.com/tools/testing). */ class ExampleUnitTest { @Test fun addition_isCorrect() { assertEquals(4, 2 + 2) } }
Fanci/fancyapi/src/test/java/com/cmoney/fancyapi/ExampleUnitTest.kt
1511422688
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 訊息id 參數 * * @param messageId 訊息id */ @Parcelize data class MessageIdParam ( /* 訊息id */ @Json(name = "messageId") val messageId: kotlin.String ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/MessageIdParam.kt
278590783
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.GroupMember import com.cmoney.fanciapi.fanci.model.IReplyVoting import com.cmoney.fanciapi.fanci.model.MediaIChatContent import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param id * @param author * @param content * @param replyVotings 回復文章包含的投票活動 * @param isDeleted 是否刪除 */ @Parcelize data class IReplyMessage ( @Json(name = "id") val id: kotlin.String? = null, @Json(name = "author") val author: GroupMember? = null, @Json(name = "content") val content: MediaIChatContent? = null, /* 回復文章包含的投票活動 */ @Json(name = "replyVotings") val replyVotings: kotlin.collections.List<IReplyVoting>? = null, /* 是否刪除 */ @Json(name = "isDeleted") val isDeleted: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IReplyMessage.kt
237400678
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * * * Values: red,orange,yellow,green,blueGreen,blue,purple,pink */ enum class RoleColor(val value: kotlin.String) { @Json(name = "SpecialColor_Red") red("SpecialColor_Red"), @Json(name = "SpecialColor_Orange") orange("SpecialColor_Orange"), @Json(name = "SpecialColor_Yellow") yellow("SpecialColor_Yellow"), @Json(name = "SpecialColor_Green") green("SpecialColor_Green"), @Json(name = "SpecialColor_BlueGreen") blueGreen("SpecialColor_BlueGreen"), @Json(name = "SpecialColor_Blue") blue("SpecialColor_Blue"), @Json(name = "SpecialColor_Purple") purple("SpecialColor_Purple"), @Json(name = "SpecialColor_Pink") pink("SpecialColor_Pink"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is RoleColor) "$data" else null /** * Returns a valid [RoleColor] for [data], null otherwise. */ fun decode(data: kotlin.Any?): RoleColor? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/RoleColor.kt
1433890624
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.AccessorParam import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param parameter */ @Parcelize data class PutWhiteListRequest ( @Json(name = "parameter") val parameter: kotlin.collections.List<AccessorParam>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PutWhiteListRequest.kt
1468877045
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Channel import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 分頁 * * @param haveNextPage 是否有下一頁 * @param nextWeight 下一個詢問權重 * @param items 結果清單 */ @Parcelize data class ChannelPaging ( /* 是否有下一頁 */ @Json(name = "haveNextPage") val haveNextPage: kotlin.Boolean? = null, /* 下一個詢問權重 */ @Json(name = "nextWeight") val nextWeight: kotlin.Long? = null, /* 結果清單 */ @Json(name = "items") val items: kotlin.collections.List<Channel>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelPaging.kt
2710906064
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 申請狀態 * * Values: unConfirmed,confirmed,denied */ enum class ApplyStatus(val value: kotlin.String) { @Json(name = "UnConfirmed") unConfirmed("UnConfirmed"), @Json(name = "Confirmed") confirmed("Confirmed"), @Json(name = "Denied") denied("Denied"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is ApplyStatus) "$data" else null /** * Returns a valid [ApplyStatus] for [data], null otherwise. */ fun decode(data: kotlin.Any?): ApplyStatus? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ApplyStatus.kt
2213114932
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChannelAuthType import com.cmoney.fanciapi.fanci.model.FanciRole import com.cmoney.fanciapi.fanci.model.GroupMember import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param authType * @param roles * @param vipRoles * @param users */ @Parcelize data class ChannelWhiteList ( @Json(name = "authType") val authType: ChannelAuthType? = null, @Json(name = "roles") val roles: kotlin.collections.List<FanciRole>? = null, @Json(name = "vipRoles") val vipRoles: kotlin.collections.List<FanciRole>? = null, @Json(name = "users") val users: kotlin.collections.List<GroupMember>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelWhiteList.kt
2541055011
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.DeleteStatus import com.cmoney.fanciapi.fanci.model.GroupMember import com.cmoney.fanciapi.fanci.model.IEmojiCount import com.cmoney.fanciapi.fanci.model.IReplyMessage import com.cmoney.fanciapi.fanci.model.IUserMessageReaction import com.cmoney.fanciapi.fanci.model.MediaIChatContent import com.cmoney.fanciapi.fanci.model.MessageServiceType import com.cmoney.fanciapi.fanci.model.Voting import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 訊息 * * @param author * @param content * @param emojiCount * @param id * @param isDeleted 是否刪除 * @param createUnixTime * @param updateUnixTime * @param serialNumber * @param messageReaction * @param deleteStatus * @param deleteFrom * @param commentCount * @param replyMessage * @param votings * @param messageFromType */ @Parcelize data class ChatMessage ( @Json(name = "author") val author: GroupMember? = null, @Json(name = "content") val content: MediaIChatContent? = null, @Json(name = "emojiCount") val emojiCount: IEmojiCount? = null, @Json(name = "id") val id: kotlin.String? = null, /* 是否刪除 */ @Json(name = "isDeleted") val isDeleted: kotlin.Boolean? = null, @Json(name = "createUnixTime") val createUnixTime: kotlin.Long? = null, @Json(name = "updateUnixTime") val updateUnixTime: kotlin.Long? = null, @Json(name = "serialNumber") val serialNumber: kotlin.Long? = null, @Json(name = "messageReaction") val messageReaction: IUserMessageReaction? = null, @Json(name = "deleteStatus") val deleteStatus: DeleteStatus? = null, @Json(name = "deleteFrom") val deleteFrom: GroupMember? = null, @Json(name = "commentCount") val commentCount: kotlin.Int? = null, @Json(name = "replyMessage") val replyMessage: IReplyMessage? = null, @Json(name = "votings") val votings: kotlin.collections.List<Voting>? = null, @Json(name = "messageFromType") val messageFromType: MessageServiceType? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChatMessage.kt
1689129009
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.DeleteStatus import com.cmoney.fanciapi.fanci.model.GroupMember import com.cmoney.fanciapi.fanci.model.IEmojiCount import com.cmoney.fanciapi.fanci.model.IReplyMessage import com.cmoney.fanciapi.fanci.model.IUserMessageReaction import com.cmoney.fanciapi.fanci.model.MediaIChatContent import com.cmoney.fanciapi.fanci.model.MessageServiceType import com.cmoney.fanciapi.fanci.model.Voting import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param replyMessage * @param votings * @param messageFromType * @param author * @param content * @param emojiCount * @param id * @param isDeleted 是否刪除 * @param createUnixTime * @param updateUnixTime * @param serialNumber * @param messageReaction * @param deleteStatus * @param deleteFrom * @param commentCount */ @Parcelize data class BulletinboardMessage ( @Json(name = "replyMessage") val replyMessage: IReplyMessage? = null, @Json(name = "votings") val votings: kotlin.collections.List<Voting>? = null, @Json(name = "messageFromType") val messageFromType: MessageServiceType? = null, @Json(name = "author") val author: GroupMember? = null, @Json(name = "content") val content: MediaIChatContent? = null, @Json(name = "emojiCount") val emojiCount: IEmojiCount? = null, @Json(name = "id") val id: kotlin.String? = null, /* 是否刪除 */ @Json(name = "isDeleted") val isDeleted: kotlin.Boolean? = null, @Json(name = "createUnixTime") val createUnixTime: kotlin.Long? = null, @Json(name = "updateUnixTime") val updateUnixTime: kotlin.Long? = null, @Json(name = "serialNumber") val serialNumber: kotlin.Long? = null, @Json(name = "messageReaction") val messageReaction: IUserMessageReaction? = null, @Json(name = "deleteStatus") val deleteStatus: DeleteStatus? = null, @Json(name = "deleteFrom") val deleteFrom: GroupMember? = null, @Json(name = "commentCount") val commentCount: kotlin.Int? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BulletinboardMessage.kt
566680141
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.IntervalDateRangeParam import com.cmoney.fanciapi.fanci.model.MessageServiceType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 訊息搜尋條件 * * @param authorId 作者 Id * @param nickname 作者暱稱 * @param searchText 搜尋文章內容 * @param groupIds 群組社團 * @param channelIds 頻道 * @param categoryIds 分類 * @param messageServiceTypes 聊天室/貼文 * @param modifyTime * @param createTime */ @Parcelize data class SearchMessageParam ( /* 作者 Id */ @Json(name = "authorId") val authorId: kotlin.String? = null, /* 作者暱稱 */ @Json(name = "nickname") val nickname: kotlin.String? = null, /* 搜尋文章內容 */ @Json(name = "searchText") val searchText: kotlin.String? = null, /* 群組社團 */ @Json(name = "groupIds") val groupIds: kotlin.collections.List<kotlin.String>? = null, /* 頻道 */ @Json(name = "channelIds") val channelIds: kotlin.collections.List<kotlin.String>? = null, /* 分類 */ @Json(name = "categoryIds") val categoryIds: kotlin.collections.List<kotlin.String>? = null, /* 聊天室/貼文 */ @Json(name = "messageServiceTypes") val messageServiceTypes: kotlin.collections.List<MessageServiceType>? = null, @Json(name = "modifyTime") val modifyTime: IntervalDateRangeParam? = null, @Json(name = "createTime") val createTime: IntervalDateRangeParam? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/SearchMessageParam.kt
2093071559
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.AuthType import com.cmoney.fanciapi.fanci.model.BuffType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param scopeType * @param buffType * @param name * @param description * @param startDateTime * @param endDateTime */ @Parcelize data class BuffStatus ( @Json(name = "scopeType") val scopeType: AuthType? = null, @Json(name = "buffType") val buffType: BuffType? = null, @Json(name = "name") val name: kotlin.String? = null, @Json(name = "description") val description: kotlin.String? = null, @Json(name = "startDateTime") val startDateTime: kotlin.Long? = null, @Json(name = "endDateTime") val endDateTime: kotlin.Long? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BuffStatus.kt
2609862645
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 包含投票數據的投票選項資料 * * @param optionId 選項ID * @param voteCount 得票數 * @param text 選項描述 */ @Parcelize data class IVotingOptionStatistic ( /* 選項ID */ @Json(name = "optionId") val optionId: kotlin.String? = null, /* 得票數 */ @Json(name = "voteCount") val voteCount: kotlin.Int? = null, /* 選項描述 */ @Json(name = "text") val text: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IVotingOptionStatistic.kt
2123025277
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ColorTheme import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 新增社團的參數 * * @param name 社團命名 * @param description 社團簡介 * @param isNeedApproval true: 非公開(需審核) false: 公開(不用審核) * @param coverImageUrl 社團封面 * @param thumbnailImageUrl 社團縮圖 * @param logoImageUrl 社團logo * @param colorSchemeGroupKey */ @Parcelize data class GroupParam ( /* 社團命名 */ @Json(name = "name") val name: kotlin.String, /* 社團簡介 */ @Json(name = "description") val description: kotlin.String? = null, /* true: 非公開(需審核) false: 公開(不用審核) */ @Json(name = "isNeedApproval") val isNeedApproval: kotlin.Boolean? = null, /* 社團封面 */ @Json(name = "coverImageUrl") val coverImageUrl: kotlin.String? = null, /* 社團縮圖 */ @Json(name = "thumbnailImageUrl") val thumbnailImageUrl: kotlin.String? = null, /* 社團logo */ @Json(name = "logoImageUrl") val logoImageUrl: kotlin.String? = null, @Json(name = "colorSchemeGroupKey") val colorSchemeGroupKey: ColorTheme? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupParam.kt
849868033
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 頻道的權限列表 * * @param canRead * @param canPost * @param canReply * @param canEmoji * @param canManage * @param canCopy * @param canBlock * @param canReport * @param canTakeback */ @Parcelize data class ChannelPermission ( @Json(name = "canRead") val canRead: kotlin.Boolean? = null, @Json(name = "canPost") val canPost: kotlin.Boolean? = null, @Json(name = "canReply") val canReply: kotlin.Boolean? = null, @Json(name = "canEmoji") val canEmoji: kotlin.Boolean? = null, @Json(name = "canManage") val canManage: kotlin.Boolean? = null, @Json(name = "canCopy") val canCopy: kotlin.Boolean? = null, @Json(name = "canBlock") val canBlock: kotlin.Boolean? = null, @Json(name = "canReport") val canReport: kotlin.Boolean? = null, @Json(name = "canTakeback") val canTakeback: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelPermission.kt
4243308164
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 角色排序參數 * * @param roleIds */ @Parcelize data class RoleOrderParam ( @Json(name = "roleIds") val roleIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/RoleOrderParam.kt
3844654742
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.CategoryOrder import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param categoryOrders */ @Parcelize data class OrderParam ( @Json(name = "categoryOrders") val categoryOrders: kotlin.collections.List<CategoryOrder>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/OrderParam.kt
2759614912
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Category import com.cmoney.fanciapi.fanci.model.ColorTheme import com.cmoney.fanciapi.fanci.model.IUserContext import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 群組 * * @param id 唯一識別 * @param name 社團命名 * @param description 社團描述 * @param isNeedApproval 加入是否需要審核 * @param coverImageUrl 封面圖 * @param thumbnailImageUrl 縮圖 * @param logoImageUrl 社團logo * @param categories 社團下的分類 * @param weight 系統排序權重 * @param creatorId 創立者 * @param createUnixTime 創立時間 * @param updateUnixTime 更新時間 * @param memberCount 會員總數 * @param colorSchemeGroupKey * @param userContext */ @Parcelize data class Group ( /* 唯一識別 */ @Json(name = "id") val id: kotlin.String? = null, /* 社團命名 */ @Json(name = "name") val name: kotlin.String? = null, /* 社團描述 */ @Json(name = "description") val description: kotlin.String? = null, /* 加入是否需要審核 */ @Json(name = "isNeedApproval") val isNeedApproval: kotlin.Boolean? = null, /* 封面圖 */ @Json(name = "coverImageUrl") val coverImageUrl: kotlin.String? = null, /* 縮圖 */ @Json(name = "thumbnailImageUrl") val thumbnailImageUrl: kotlin.String? = null, /* 社團logo */ @Json(name = "logoImageUrl") val logoImageUrl: kotlin.String? = null, /* 社團下的分類 */ @Json(name = "categories") val categories: kotlin.collections.List<Category>? = null, /* 系統排序權重 */ @Json(name = "weight") val weight: kotlin.Long? = null, /* 創立者 */ @Json(name = "creatorId") val creatorId: kotlin.String? = null, /* 創立時間 */ @Json(name = "createUnixTime") val createUnixTime: kotlin.Long? = null, /* 更新時間 */ @Json(name = "updateUnixTime") val updateUnixTime: kotlin.Long? = null, /* 會員總數 */ @Json(name = "memberCount") val memberCount: kotlin.Int? = null, @Json(name = "ColorSchemeGroupKey") val colorSchemeGroupKey: ColorTheme? = null, @Json(name = "userContext") val userContext: IUserContext? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/Group.kt
4073710361
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * * * Values: pending,ignored,punished */ enum class ReportProcessStatus(val value: kotlin.String) { @Json(name = "Pending") pending("Pending"), @Json(name = "Ignored") ignored("Ignored"), @Json(name = "Punished") punished("Punished"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is ReportProcessStatus) "$data" else null /** * Returns a valid [ReportProcessStatus] for [data], null otherwise. */ fun decode(data: kotlin.Any?): ReportProcessStatus? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ReportProcessStatus.kt
2646780334
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 使用者介面 * * @param id * @param cmoneyMemberId CMoney 會員編號 * @param name 使用者名稱(全域預設) * @param thumbNail 使用者頭像(全域預設) * @param serialNumber 流水號 * @param createUnixTime 資料建立時間 * @param updateUnixTime 資料更新時間 */ @Parcelize data class IUser ( @Json(name = "id") val id: kotlin.String? = null, /* CMoney 會員編號 */ @Json(name = "cmoneyMemberId") val cmoneyMemberId: kotlin.Int? = null, /* 使用者名稱(全域預設) */ @Json(name = "name") val name: kotlin.String? = null, /* 使用者頭像(全域預設) */ @Json(name = "thumbNail") val thumbNail: kotlin.String? = null, /* 流水號 */ @Json(name = "serialNumber") val serialNumber: kotlin.Long? = null, /* 資料建立時間 */ @Json(name = "createUnixTime") val createUnixTime: kotlin.Long? = null, /* 資料更新時間 */ @Json(name = "updateUnixTime") val updateUnixTime: kotlin.Long? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IUser.kt
57616810
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.IUserVoteInfo import com.cmoney.fanciapi.fanci.model.IVotingOptionStatistic import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param id 投票活動Id * @param title 標題 * @param votingOptionStatistics 選項 * @param isMultipleChoice 是否能多選 * @param isAnonymous 是否匿名投票 * @param isEnded 投票是否結束 * @param votersCount 總投票人數 * @param userVote */ @Parcelize data class Voting ( /* 投票活動Id */ @Json(name = "id") val id: kotlin.String? = null, /* 標題 */ @Json(name = "title") val title: kotlin.String? = null, /* 選項 */ @Json(name = "votingOptionStatistics") val votingOptionStatistics: kotlin.collections.List<IVotingOptionStatistic>? = null, /* 是否能多選 */ @Json(name = "isMultipleChoice") val isMultipleChoice: kotlin.Boolean? = null, /* 是否匿名投票 */ @Json(name = "isAnonymous") val isAnonymous: kotlin.Boolean? = null, /* 投票是否結束 */ @Json(name = "isEnded") val isEnded: kotlin.Boolean? = null, /* 總投票人數 */ @Json(name = "votersCount") val votersCount: kotlin.Int? = null, @Json(name = "userVote") val userVote: IUserVoteInfo? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/Voting.kt
618228148
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.GroupRequirementApply import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 分頁 * * @param haveNextPage 是否有下一頁 * @param nextWeight 下一個詢問權重 * @param items 結果清單 */ @Parcelize data class GroupRequirementApplyPaging ( /* 是否有下一頁 */ @Json(name = "haveNextPage") val haveNextPage: kotlin.Boolean? = null, /* 下一個詢問權重 */ @Json(name = "nextWeight") val nextWeight: kotlin.Long? = null, /* 結果清單 */ @Json(name = "items") val items: kotlin.collections.List<GroupRequirementApply>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupRequirementApplyPaging.kt
3039623671
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.BanPeriodOption import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param userid * @param periodOption */ @Parcelize data class BanParam ( @Json(name = "userid") val userid: kotlin.String? = null, @Json(name = "periodOption") val periodOption: BanPeriodOption? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BanParam.kt
4273840210
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.FanciRole import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 社團會員 * * @param id 使用者id * @param name 名稱 * @param thumbNail 頭像 * @param serialNumber 會員識別號 * @param roleInfos 角色資訊(全部) * @param isGroupVip 判斷該成員是否有群組任一種VIP */ @Parcelize data class GroupMember ( /* 使用者id */ @Json(name = "id") val id: kotlin.String? = null, /* 名稱 */ @Json(name = "name") val name: kotlin.String? = null, /* 頭像 */ @Json(name = "thumbNail") val thumbNail: kotlin.String? = null, /* 會員識別號 */ @Json(name = "serialNumber") val serialNumber: kotlin.Long? = null, /* 角色資訊(全部) */ @Json(name = "roleInfos") val roleInfos: kotlin.collections.List<FanciRole>? = null, /* 判斷該成員是否有群組任一種VIP */ @Json(name = "isGroupVip") val isGroupVip: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupMember.kt
4141543654
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 刪除投票參數 * * @param votingIds 投票 ID 陣列 */ @Parcelize data class DeleteVotingsParam ( /* 投票 ID 陣列 */ @Json(name = "votingIds") val votingIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/DeleteVotingsParam.kt
4042906538
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.FanciRole import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 社團會員 全部角色資訊 * * @param id 使用者id * @param roleInfos 角色資訊(最高) */ @Parcelize data class GroupMemberRoleInfos ( /* 使用者id */ @Json(name = "id") val id: kotlin.String? = null, /* 角色資訊(最高) */ @Json(name = "roleInfos") val roleInfos: kotlin.collections.List<FanciRole>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupMemberRoleInfos.kt
257091705
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChannelTabType import com.cmoney.fanciapi.fanci.model.IUserContext import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * Channel功能區 * * @param channelId 頻道ID * @param type * @param userContext */ @Parcelize data class IChannelTab ( /* 頻道ID */ @Json(name = "channelId") val channelId: kotlin.String? = null, @Json(name = "type") val type: ChannelTabType? = null, @Json(name = "userContext") val userContext: IUserContext? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IChannelTab.kt
1713367815
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 多個角色id參數 * * @param roleIds */ @Parcelize data class RoleIdsParam ( @Json(name = "roleIds") val roleIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/RoleIdsParam.kt
979068587
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Media import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param replyMessageId 回覆的messageid * @param text 文字訊息內容 * @param medias 附帶媒體內容 * @param votingIds 投票活動 */ @Parcelize data class ChatMessageParam ( /* 回覆的messageid */ @Json(name = "replyMessageId") val replyMessageId: kotlin.String? = null, /* 文字訊息內容 */ @Json(name = "text") val text: kotlin.String? = null, /* 附帶媒體內容 */ @Json(name = "medias") val medias: kotlin.collections.List<Media>? = null, /* 投票活動 */ @Json(name = "votingIds") val votingIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChatMessageParam.kt
1541593258
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChannelAuthType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param authType */ @Parcelize data class PutAuthTypeRequest ( @Json(name = "authType") val authType: ChannelAuthType? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PutAuthTypeRequest.kt
2476522896
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param voterIds 投該選項用戶 * @param optionId 選項ID * @param voteCount 得票數 * @param text 選項描述 */ @Parcelize data class IVotingOptionStatisticsWithVoter ( /* 投該選項用戶 */ @Json(name = "voterIds") val voterIds: kotlin.collections.List<kotlin.String>? = null, /* 選項ID */ @Json(name = "optionId") val optionId: kotlin.Int? = null, /* 得票數 */ @Json(name = "voteCount") val voteCount: kotlin.Int? = null, /* 選項描述 */ @Json(name = "text") val text: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IVotingOptionStatisticsWithVoter.kt
956122665
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param packId * @param type * @param subjectId */ @Parcelize data class AuthorizationEntry ( @Json(name = "packId") val packId: kotlin.Long? = null, @Json(name = "type") val type: kotlin.String? = null, @Json(name = "subjectId") val subjectId: kotlin.Int? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/AuthorizationEntry.kt
1318407804
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChatMessage import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 公告訊息資訊 * * @param isAnnounced 是否有公告訊息 * @param message */ @Parcelize data class PinnedMessageInfo ( /* 是否有公告訊息 */ @Json(name = "isAnnounced") val isAnnounced: kotlin.Boolean? = null, @Json(name = "message") val message: ChatMessage? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PinnedMessageInfo.kt
4107930945
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param spacePermissionIds * @param isAdd */ @Parcelize data class PatchPermissionParam ( @Json(name = "spacePermissionIds") val spacePermissionIds: kotlin.collections.List<kotlin.Int>? = null, @Json(name = "isAdd") val isAdd: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PatchPermissionParam.kt
2345394160
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.NotificationSettingType import com.cmoney.fanciapi.fanci.model.PushNotificationSettingType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 設定類型清單內容 * * @param settingType * @param shortTitle * @param title * @param description * @param notificationTypes */ @Parcelize data class PushNotificationSetting ( @Json(name = "settingType") val settingType: PushNotificationSettingType? = null, @Json(name = "shortTitle") val shortTitle: kotlin.String? = null, @Json(name = "title") val title: kotlin.String? = null, @Json(name = "description") val description: kotlin.String? = null, @Json(name = "notificationTypes") val notificationTypes: kotlin.collections.List<NotificationSettingType>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PushNotificationSetting.kt
2942806754
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 通知與推播設定分類 * * Values: fanciOfficial,fanciAgreeJoinGroup,fanciNewGroupApply,fanciGroupDelete,fanciNewBulletinMessage,fanciNewBulletinReplyMessage,fanciNewBulletinEmoji,fanciNewBulletinReplyMessageEmoji,fanciNewBulletinReplyMessageFollow,fanciNewChatMessage,fanciNewChatEmoji,fanciSendGroupApply */ enum class NotificationSettingType(val value: kotlin.String) { @Json(name = "FanciOfficial") fanciOfficial("FanciOfficial"), @Json(name = "FanciAgreeJoinGroup") fanciAgreeJoinGroup("FanciAgreeJoinGroup"), @Json(name = "FanciNewGroupApply") fanciNewGroupApply("FanciNewGroupApply"), @Json(name = "FanciGroupDelete") fanciGroupDelete("FanciGroupDelete"), @Json(name = "FanciNewBulletinMessage") fanciNewBulletinMessage("FanciNewBulletinMessage"), @Json(name = "FanciNewBulletinReplyMessage") fanciNewBulletinReplyMessage("FanciNewBulletinReplyMessage"), @Json(name = "FanciNewBulletinEmoji") fanciNewBulletinEmoji("FanciNewBulletinEmoji"), @Json(name = "FanciNewBulletinReplyMessageEmoji") fanciNewBulletinReplyMessageEmoji("FanciNewBulletinReplyMessageEmoji"), @Json(name = "FanciNewBulletinReplyMessageFollow") fanciNewBulletinReplyMessageFollow("FanciNewBulletinReplyMessageFollow"), @Json(name = "FanciNewChatMessage") fanciNewChatMessage("FanciNewChatMessage"), @Json(name = "FanciNewChatEmoji") fanciNewChatEmoji("FanciNewChatEmoji"), @Json(name = "FanciSendGroupApply") fanciSendGroupApply("FanciSendGroupApply"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is NotificationSettingType) "$data" else null /** * Returns a valid [NotificationSettingType] for [data], null otherwise. */ fun decode(data: kotlin.Any?): NotificationSettingType? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/NotificationSettingType.kt
2591559695
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * * * Values: buff,debuff */ enum class BuffType(val value: kotlin.String) { @Json(name = "Buff") buff("Buff"), @Json(name = "Debuff") debuff("Debuff"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is BuffType) "$data" else null /** * Returns a valid [BuffType] for [data], null otherwise. */ fun decode(data: kotlin.Any?): BuffType? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BuffType.kt
105497242
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Media import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param text 文字訊息內容 * @param medias 附帶媒體內容 * @param votingIds 投票活動 */ @Parcelize data class BulletingBoardMessageParam ( /* 文字訊息內容 */ @Json(name = "text") val text: kotlin.String? = null, /* 附帶媒體內容 */ @Json(name = "medias") val medias: kotlin.collections.List<Media>? = null, /* 投票活動 */ @Json(name = "votingIds") val votingIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BulletingBoardMessageParam.kt
2382078873
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Permission import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param displayCategoryName * @param permissions */ @Parcelize data class PermissionCategory ( @Json(name = "displayCategoryName") val displayCategoryName: kotlin.String? = null, @Json(name = "permissions") val permissions: kotlin.collections.List<Permission>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PermissionCategory.kt
3991141994
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 使用者參數 * * @param name 使用者名稱 * @param thumbNail 使用者頭像 */ @Parcelize data class UserParam ( /* 使用者名稱 */ @Json(name = "name") val name: kotlin.String, /* 使用者頭像 */ @Json(name = "thumbNail") val thumbNail: kotlin.String ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/UserParam.kt
603932799
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.RoleColor import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 新增角色參數 * * @param name 角色名稱 * @param permissionIds Fanci權限ID清單 參考 /api/v1/Permission 清單內容 * @param color */ @Parcelize data class RoleParam ( /* 角色名稱 */ @Json(name = "name") val name: kotlin.String? = null, /* Fanci權限ID清單 參考 /api/v1/Permission 清單內容 */ @Json(name = "permissionIds") val permissionIds: kotlin.collections.List<kotlin.String>? = null, @Json(name = "color") val color: RoleColor? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/RoleParam.kt
793268161
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChannelPrivacy import com.cmoney.fanciapi.fanci.model.ChannelTabType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 新增頻道參數 * * @param name 頻道名稱 * @param privacy * @param tabs 頻道開啟類別(順序依照提供的順序排序) */ @Parcelize data class ChannelParam ( /* 頻道名稱 */ @Json(name = "name") val name: kotlin.String? = null, @Json(name = "privacy") val privacy: ChannelPrivacy? = null, /* 頻道開啟類別(順序依照提供的順序排序) */ @Json(name = "tabs") val tabs: kotlin.collections.List<ChannelTabType>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelParam.kt
1366668128
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param packId * @param type * @param subjectId * @param roleId * @param roleName * @param saleBelong * @param isSubscribed * @param paymentDate * @param nextPaymentAlert */ @Parcelize data class PurchasedRole ( @Json(name = "packId") val packId: kotlin.Long? = null, @Json(name = "type") val type: kotlin.String? = null, @Json(name = "subjectId") val subjectId: kotlin.Int? = null, @Json(name = "roleId") val roleId: kotlin.Long? = null, @Json(name = "roleName") val roleName: kotlin.String? = null, @Json(name = "saleBelong") val saleBelong: kotlin.String? = null, @Json(name = "isSubscribed") val isSubscribed: kotlin.Boolean? = null, @Json(name = "paymentDate") val paymentDate: String? = null, @Json(name = "nextPaymentAlert") val nextPaymentAlert: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PurchasedRole.kt
1238535589
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.GroupRequirementApply import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 社團申請資訊 * * @param hasApplied 是否有申請過 * @param apply */ @Parcelize data class GroupRequirementApplyInfo ( /* 是否有申請過 */ @Json(name = "hasApplied") val hasApplied: kotlin.Boolean? = null, @Json(name = "apply") val apply: GroupRequirementApply? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupRequirementApplyInfo.kt
3085640820
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 題組回應 * * @param question 題目 * @param answer 回應 */ @Parcelize data class GroupRequirementAnswer ( /* 題目 */ @Json(name = "question") val question: kotlin.String? = null, /* 回應 */ @Json(name = "answer") val answer: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupRequirementAnswer.kt
1764670914
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param selectedOptions */ @Parcelize data class CastVoteParam ( @Json(name = "selectedOptions") val selectedOptions: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/CastVoteParam.kt
1926028166
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.BulletinboardMessage import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 分頁 * * @param haveNextPage 是否有下一頁 * @param nextWeight 下一個詢問權重 * @param items 結果清單 */ @Parcelize data class BulletinboardMessagePaging ( /* 是否有下一頁 */ @Json(name = "haveNextPage") val haveNextPage: kotlin.Boolean? = null, /* 下一個詢問權重 */ @Json(name = "nextWeight") val nextWeight: kotlin.Long? = null, /* 結果清單 */ @Json(name = "items") val items: kotlin.collections.List<BulletinboardMessage>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BulletinboardMessagePaging.kt
4145799997
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param editGroup * @param rearrangeChannelCategory * @param setGroupPublicity * @param createOrEditCategory * @param deleteCategory * @param createOrEditChannel * @param setAnnouncement * @param deleteChannel * @param createOrEditRole * @param deleteRole * @param rearrangeRoles * @param assignRole * @param approveJoinApplies * @param deleteMemberMessage * @param banOrKickMember * @param editVipRole */ @Parcelize data class GroupPermission ( @Json(name = "editGroup") val editGroup: kotlin.Boolean? = null, @Json(name = "rearrangeChannelCategory") val rearrangeChannelCategory: kotlin.Boolean? = null, @Json(name = "setGroupPublicity") val setGroupPublicity: kotlin.Boolean? = null, @Json(name = "createOrEditCategory") val createOrEditCategory: kotlin.Boolean? = null, @Json(name = "deleteCategory") val deleteCategory: kotlin.Boolean? = null, @Json(name = "createOrEditChannel") val createOrEditChannel: kotlin.Boolean? = null, @Json(name = "setAnnouncement") val setAnnouncement: kotlin.Boolean? = null, @Json(name = "deleteChannel") val deleteChannel: kotlin.Boolean? = null, @Json(name = "createOrEditRole") val createOrEditRole: kotlin.Boolean? = null, @Json(name = "deleteRole") val deleteRole: kotlin.Boolean? = null, @Json(name = "rearrangeRoles") val rearrangeRoles: kotlin.Boolean? = null, @Json(name = "assignRole") val assignRole: kotlin.Boolean? = null, @Json(name = "approveJoinApplies") val approveJoinApplies: kotlin.Boolean? = null, @Json(name = "deleteMemberMessage") val deleteMemberMessage: kotlin.Boolean? = null, @Json(name = "banOrKickMember") val banOrKickMember: kotlin.Boolean? = null, @Json(name = "editVipRole") val editVipRole: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupPermission.kt
4204491388
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param title * @param icon * @param isEnabled */ @Parcelize data class AuthBulliten ( @Json(name = "title") val title: kotlin.String? = null, @Json(name = "icon") val icon: kotlin.String? = null, @Json(name = "isEnabled") val isEnabled: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/AuthBulliten.kt
2342418788
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 使用者陣列參數 * * @param userIds Fanci 用戶 ID */ @Parcelize data class UseridsParam ( /* Fanci 用戶 ID */ @Json(name = "userIds") val userIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/UseridsParam.kt
3625832733
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param like * @param dislike * @param laugh * @param money * @param shock * @param cry * @param think * @param angry */ @Parcelize data class IEmojiCount ( @Json(name = "like") val like: kotlin.Int? = null, @Json(name = "dislike") val dislike: kotlin.Int? = null, @Json(name = "laugh") val laugh: kotlin.Int? = null, @Json(name = "money") val money: kotlin.Int? = null, @Json(name = "shock") val shock: kotlin.Int? = null, @Json(name = "cry") val cry: kotlin.Int? = null, @Json(name = "think") val think: kotlin.Int? = null, @Json(name = "angry") val angry: kotlin.Int? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IEmojiCount.kt
3649498748
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 影片內容 * * @param fileName * @param fileSize * @param duration * @param thumbnailUrl */ @Parcelize data class VideoContent ( @Json(name = "fileName") val fileName: kotlin.String? = null, @Json(name = "fileSize") val fileSize: kotlin.Long? = null, @Json(name = "duration") val duration: kotlin.Long? = null, @Json(name = "thumbnailUrl") val thumbnailUrl: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/VideoContent.kt
928480406
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.GroupRequirementQuestion import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 新增社團申請的題目 * * @param questions 題目組合 */ @Parcelize data class GroupRequirementParam ( /* 題目組合 */ @Json(name = "questions") val questions: kotlin.collections.List<GroupRequirementQuestion>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupRequirementParam.kt
207416596
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param count */ @Parcelize data class CountResult ( @Json(name = "count") val count: kotlin.Long? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/CountResult.kt
4234834714
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * * * Values: group,channel */ enum class AuthType(val value: kotlin.String) { @Json(name = "Group") group("Group"), @Json(name = "Channel") channel("Channel"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is AuthType) "$data" else null /** * Returns a valid [AuthType] for [data], null otherwise. */ fun decode(data: kotlin.Any?): AuthType? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/AuthType.kt
2998632398
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * PDF檔內容 * * @param fileName * @param fileSize * @param thumbnailUrl */ @Parcelize data class PdfContent ( @Json(name = "fileName") val fileName: kotlin.String? = null, @Json(name = "fileSize") val fileSize: kotlin.Long? = null, @Json(name = "thumbnailUrl") val thumbnailUrl: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PdfContent.kt
917787708
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Channel import com.cmoney.fanciapi.fanci.model.IUserContext import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param id 分類ID * @param name 分類標籤名稱 * @param weight 排序權重 * @param createUnixTime 分類建立時間 * @param updateUnixTime 分類更新時間 * @param creatorId 建立分類UserId * @param isDeleted 是否被刪除 * @param groupId 所屬社團 * @param channels 分類下的頻道 * @param isDefault 前端顯示是否為隱藏 * @param userContext */ @Parcelize data class Category ( /* 分類ID */ @Json(name = "id") val id: kotlin.String? = null, /* 分類標籤名稱 */ @Json(name = "name") val name: kotlin.String? = null, /* 排序權重 */ @Json(name = "weight") val weight: kotlin.Long? = null, /* 分類建立時間 */ @Json(name = "createUnixTime") val createUnixTime: kotlin.Long? = null, /* 分類更新時間 */ @Json(name = "updateUnixTime") val updateUnixTime: kotlin.Long? = null, /* 建立分類UserId */ @Json(name = "creatorId") val creatorId: kotlin.String? = null, /* 是否被刪除 */ @Json(name = "isDeleted") val isDeleted: kotlin.Boolean? = null, /* 所屬社團 */ @Json(name = "groupId") val groupId: kotlin.String? = null, /* 分類下的頻道 */ @Json(name = "channels") val channels: kotlin.collections.List<Channel>? = null, /* 前端顯示是否為隱藏 */ @Json(name = "isDefault") val isDefault: kotlin.Boolean? = null, @Json(name = "userContext") val userContext: IUserContext? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/Category.kt
1682234602
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param id * @param name * @param permissionIds * @param color * @param createUnixTime * @param updateUnixTime * @param userCount * @param isVipRole */ @Parcelize data class FanciRole ( @Json(name = "id") val id: kotlin.String? = null, @Json(name = "name") val name: kotlin.String? = null, @Json(name = "permissionIds") val permissionIds: kotlin.collections.List<kotlin.String>? = null, @Json(name = "color") val color: kotlin.String? = null, @Json(name = "createUnixTime") val createUnixTime: kotlin.Long? = null, @Json(name = "updateUnixTime") val updateUnixTime: kotlin.Long? = null, @Json(name = "userCount") val userCount: kotlin.Long? = null, @Json(name = "isVipRole") val isVipRole: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/FanciRole.kt
710495366
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * * * Values: themeFanciBlue,themeSmokePink,themeMidnightBlue,themeClassicGreen,themeNeonBlack */ enum class ColorTheme(val value: kotlin.String) { @Json(name = "ThemeFanciBlue") themeFanciBlue("ThemeFanciBlue"), @Json(name = "ThemeSmokePink") themeSmokePink("ThemeSmokePink"), @Json(name = "ThemeMidnightBlue") themeMidnightBlue("ThemeMidnightBlue"), @Json(name = "ThemeClassicGreen") themeClassicGreen("ThemeClassicGreen"), @Json(name = "ThemeNeonBlack") themeNeonBlack("ThemeNeonBlack"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is ColorTheme) "$data" else null /** * Returns a valid [ColorTheme] for [data], null otherwise. */ fun decode(data: kotlin.Any?): ColorTheme? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ColorTheme.kt
1073710928
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param count */ @Parcelize data class WhiteListCount ( @Json(name = "count") val count: kotlin.Int? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/WhiteListCount.kt
254413350
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 刪除類型列舉 * * Values: none,deleted,takeBack */ enum class DeleteStatus(val value: kotlin.String) { @Json(name = "None") none("None"), @Json(name = "Deleted") deleted("Deleted"), @Json(name = "TakeBack") takeBack("TakeBack"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is DeleteStatus) "$data" else null /** * Returns a valid [DeleteStatus] for [data], null otherwise. */ fun decode(data: kotlin.Any?): DeleteStatus? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/DeleteStatus.kt
569623665
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChannelTabType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 設定頻道功能區排序物件 * * @param tabs 頻道功能區排序 */ @Parcelize data class ChannelTabsSortParam ( /* 頻道功能區排序 */ @Json(name = "tabs") val tabs: kotlin.collections.List<ChannelTabType>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelTabsSortParam.kt
1928085034
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 頻道權限 * * Values: basic,inter,advance,noPermission */ enum class ChannelAuthType(val value: kotlin.String) { @Json(name = "basic") basic("basic"), @Json(name = "inter") inter("inter"), @Json(name = "advance") advance("advance"), @Json(name = "NoPermission") noPermission("NoPermission"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is ChannelAuthType) "$data" else null /** * Returns a valid [ChannelAuthType] for [data], null otherwise. */ fun decode(data: kotlin.Any?): ChannelAuthType? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelAuthType.kt
3429645531
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 頻道類型列舉 * * Values: chatRoom,bulletinboard */ enum class ChannelTabType(val value: kotlin.String) { @Json(name = "ChatRoom") chatRoom("ChatRoom"), @Json(name = "Bulletinboard") bulletinboard("Bulletinboard"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is ChannelTabType) "$data" else null /** * Returns a valid [ChannelTabType] for [data], null otherwise. */ fun decode(data: kotlin.Any?): ChannelTabType? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelTabType.kt
735511775
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param chatRoom 聊天室 * @param bulletinboard 貼文 */ @Parcelize data class ChannelTabsStatus ( /* 聊天室 */ @Json(name = "chatRoom") val chatRoom: kotlin.Boolean? = null, /* 貼文 */ @Json(name = "bulletinboard") val bulletinboard: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelTabsStatus.kt
1644814659
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.AuthBulliten import com.cmoney.fanciapi.fanci.model.ChannelAuthType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param authType * @param title * @param icon * @param bullitens */ @Parcelize data class ChannelAccessOptionModel ( @Json(name = "authType") val authType: ChannelAuthType? = null, @Json(name = "title") val title: kotlin.String? = null, @Json(name = "icon") val icon: kotlin.String? = null, @Json(name = "bullitens") val bullitens: kotlin.collections.List<AuthBulliten>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelAccessOptionModel.kt
3056562121
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 多媒體檔案 (個體) * * @param resourceLink 連結 * @param type 媒體類型 (原本是Enum 但因為新增前端就要做強更 所以改成string彈性較高)<br></br> 圖片 (Image), 影片 (Video), 音檔 (Audio), 文檔 (Txt), PDF檔 (Pdf) * @param isNeedAuthenticate 媒體是否需要內部驗證 */ @Parcelize data class IMedia ( /* 連結 */ @Json(name = "resourceLink") val resourceLink: kotlin.String? = null, /* 媒體類型 (原本是Enum 但因為新增前端就要做強更 所以改成string彈性較高)<br></br> 圖片 (Image), 影片 (Video), 音檔 (Audio), 文檔 (Txt), PDF檔 (Pdf) */ @Json(name = "type") val type: kotlin.String? = null, /* 媒體是否需要內部驗證 */ @Json(name = "isNeedAuthenticate") val isNeedAuthenticate: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IMedia.kt
2138137375
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param voterIds 投該選項用戶 * @param optionId 選項ID * @param voteCount 得票數 * @param text 選項描述 */ @Parcelize data class IVotingOptionStatisticWithVoter ( /* 投該選項用戶 */ @Json(name = "voterIds") val voterIds: kotlin.collections.List<kotlin.String>? = null, /* 選項ID */ @Json(name = "optionId") val optionId: kotlin.String? = null, /* 得票數 */ @Json(name = "voteCount") val voteCount: kotlin.Int? = null, /* 選項描述 */ @Json(name = "text") val text: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/IVotingOptionStatisticWithVoter.kt
2759600889
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ApplyStatus import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 申請狀態參數 * * @param status * @param applyIds 處理的申請ID清單 */ @Parcelize data class GroupApplyStatusParam ( @Json(name = "status") val status: ApplyStatus? = null, /* 處理的申請ID清單 */ @Json(name = "applyIds") val applyIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GroupApplyStatusParam.kt
3923496133
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ReportProcessStatus import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param status */ @Parcelize data class ReportStatusUpdateParam ( @Json(name = "status") val status: ReportProcessStatus? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ReportStatusUpdateParam.kt
240306532
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 禁言時數分類 * * Values: oneDay,threeDay,oneWeek,oneMonth,forever */ enum class BanPeriodOption(val value: kotlin.String) { @Json(name = "OneDay") oneDay("OneDay"), @Json(name = "ThreeDay") threeDay("ThreeDay"), @Json(name = "OneWeek") oneWeek("OneWeek"), @Json(name = "OneMonth") oneMonth("OneMonth"), @Json(name = "Forever") forever("Forever"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is BanPeriodOption) "$data" else null /** * Returns a valid [BanPeriodOption] for [data], null otherwise. */ fun decode(data: kotlin.Any?): BanPeriodOption? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/BanPeriodOption.kt
3444416954
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.ChannelAuthType import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param authType * @param title * @param allowedAction */ @Parcelize data class ChannelAccessOptionV2 ( @Json(name = "authType") val authType: ChannelAuthType? = null, @Json(name = "title") val title: kotlin.String? = null, @Json(name = "allowedAction") val allowedAction: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/ChannelAccessOptionV2.kt
174623741
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param roleIds * @param userIds */ @Parcelize data class GetWhiteListCountParam ( @Json(name = "roleIds") val roleIds: kotlin.collections.List<kotlin.String>? = null, @Json(name = "userIds") val userIds: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/GetWhiteListCountParam.kt
1502234216
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.AccessorTypes import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 設定自定義存取權限參數 * * @param type * @param ids 可存取此頻道的RoleIds/UserId */ @Parcelize data class AccessorParam ( @Json(name = "type") val type: AccessorTypes? = null, /* 可存取此頻道的RoleIds/UserId */ @Json(name = "ids") val ids: kotlin.collections.List<kotlin.String>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/AccessorParam.kt
3210240975
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 分類參數 * * @param name 分類命名 */ @Parcelize data class CategoryParam ( /* 分類命名 */ @Json(name = "name") val name: kotlin.String ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/CategoryParam.kt
3779427661
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * 前端推播設定分類 * * Values: silent,newPost,newStory */ enum class PushNotificationSettingType(val value: kotlin.String) { @Json(name = "Silent") silent("Silent"), @Json(name = "NewPost") newPost("NewPost"), @Json(name = "NewStory") newStory("NewStory"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is PushNotificationSettingType) "$data" else null /** * Returns a valid [PushNotificationSettingType] for [data], null otherwise. */ fun decode(data: kotlin.Any?): PushNotificationSettingType? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/PushNotificationSettingType.kt
4062963755
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param name * @param hexColorCode * @param displayName */ @Parcelize data class Color ( @Json(name = "name") val name: kotlin.String? = null, @Json(name = "hexColorCode") val hexColorCode: kotlin.String? = null, @Json(name = "displayName") val displayName: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/Color.kt
3950823960
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param id * @param name 權限名稱 * @param description 權限描述 * @param displayName * @param highlight */ @Parcelize data class Permission ( @Json(name = "id") val id: kotlin.String? = null, /* 權限名稱 */ @Json(name = "name") val name: kotlin.String? = null, /* 權限描述 */ @Json(name = "description") val description: kotlin.String? = null, @Json(name = "displayName") val displayName: kotlin.String? = null, @Json(name = "highlight") val highlight: kotlin.Boolean? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/Permission.kt
2204474578
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.User import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 分頁 * * @param haveNextPage 是否有下一頁 * @param nextWeight 下一個詢問權重 * @param items 結果清單 */ @Parcelize data class UserPaging ( /* 是否有下一頁 */ @Json(name = "haveNextPage") val haveNextPage: kotlin.Boolean? = null, /* 下一個詢問權重 */ @Json(name = "nextWeight") val nextWeight: kotlin.Long? = null, /* 結果清單 */ @Json(name = "items") val items: kotlin.collections.List<User>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/UserPaging.kt
447587986
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.Color import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param displayName * @param previewThumbnail * @param previewImage * @param categoryColors */ @Parcelize data class Theme ( @Json(name = "displayName") val displayName: kotlin.String? = null, @Json(name = "previewThumbnail") val previewThumbnail: kotlin.String? = null, @Json(name = "previewImage") val previewImage: kotlin.collections.List<kotlin.String>? = null, @Json(name = "categoryColors") val categoryColors: kotlin.collections.Map<kotlin.String, kotlin.collections.List<Color>>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/Theme.kt
2355482112
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json /** * * * Values: role,vipRole,users */ enum class AccessorTypes(val value: kotlin.String) { @Json(name = "Role") role("Role"), @Json(name = "VipRole") vipRole("VipRole"), @Json(name = "Users") users("Users"); /** * Override toString() to avoid using the enum variable name as the value, and instead use * the actual value defined in the API spec file. * * This solves a problem when the variable name and its value are different, and ensures that * the client sends the correct enum values to the server always. */ override fun toString(): String = value companion object { /** * Converts the provided [data] to a [String] on success, null otherwise. */ fun encode(data: kotlin.Any?): kotlin.String? = if (data is AccessorTypes) "$data" else null /** * Returns a valid [AccessorTypes] for [data], null otherwise. */ fun decode(data: kotlin.Any?): AccessorTypes? = data?.let { val normalizedData = "$it".lowercase() values().firstOrNull { value -> it == value || normalizedData == "$value".lowercase() } } } }
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/AccessorTypes.kt
2289304965
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 投票選項 * * @param text 選項描述 */ @Parcelize data class VotingOption ( /* 選項描述 */ @Json(name = "text") val text: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/VotingOption.kt
2536079693
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.cmoney.fanciapi.fanci.model.BuffStatus import com.cmoney.fanciapi.fanci.model.User import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * * * @param user * @param buffs */ @Parcelize data class UserBuffInformation ( @Json(name = "user") val user: User? = null, @Json(name = "buffs") val buffs: kotlin.collections.List<BuffStatus>? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/UserBuffInformation.kt
2162325611
/** * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. * */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport" ) package com.cmoney.fanciapi.fanci.model import com.squareup.moshi.Json import android.os.Parcelable import kotlinx.parcelize.Parcelize /** * 投票活動 * * @param id 投票活動Id */ @Parcelize data class VotingIdParam ( /* 投票活動Id */ @Json(name = "id") val id: kotlin.String? = null ) : Parcelable
Fanci/fancyapi/src/main/java/com/cmoney/fanciapi/fanci/model/VotingIdParam.kt
1925801694