Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
c4dc575a
Commit
c4dc575a
authored
Nov 05, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dot
parent
8d91df7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
Deal.kt
.../visual/roompark/data/repository/db/requrey/model/Deal.kt
+2
-4
ImageAlbum.kt
...l/roompark/data/repository/db/requrey/model/ImageAlbum.kt
+4
-4
FileModule.kt
...iganto/visual/roompark/data/repository/file/FileModule.kt
+1
-1
No files found.
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/model/Deal.kt
View file @
c4dc575a
package
com.biganto.visual.roompark.data.repository.db.requrey.model
import
io.requery.Entity
import
io.requery.ForeignKey
import
io.requery.Key
import
io.requery.Persistable
import
io.requery.*
/**
* Created by Vladislav Bogdashkin on 05.11.2019.
...
...
@@ -21,5 +18,6 @@ interface Deal : Persistable {
val
statusId
:
Int
val
managerName
:
String
@get
:
ForeignKey
(
references
=
Estate
::
class
)
@get
:
OneToOne
(
cascade
=
[
CascadeAction
.
NONE
])
var
estate
:
Estate
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/model/ImageAlbum.kt
View file @
c4dc575a
package
com.biganto.visual.roompark.data.repository.db.requrey.model
import
io.requery.Entity
import
io.requery.ForeignKey
import
io.requery.Key
import
io.requery.Persistable
import
com.biganto.visual.roompark.data.repository.db.requrey.utils.IsoDateConverter
import
io.requery.*
import
java.util.*
/**
...
...
@@ -17,7 +15,9 @@ interface ImageAlbum : Persistable {
val
id
:
Int
val
title
:
String
val
sort
:
Int
@get
:
Convert
(
IsoDateConverter
::
class
)
val
date
:
Date
@get
:
JunctionTable
(
name
=
"AlbumParentness"
)
@get
:
ForeignKey
(
references
=
ImageAlbum
::
class
,
referencedColumn
=
"id"
)
val
parent_id
:
Int
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/data/repository/file/FileModule.kt
View file @
c4dc575a
...
...
@@ -65,7 +65,7 @@ class FilesModule(private val context: Context) {
context
?.
filesDir
?.
absolutePath
?.
plus
(
dirType
.
dir
)
?:
throw
IllegalArgumentException
(
"Context cannot be null!"
)
fun
assetsDirectory
(
context
:
Context
?):
String
=
context
?.
filesDir
?.
absolutePath
.
fun
assetsDirectory
(
context
:
Context
?):
String
=
context
?.
filesDir
?.
absolutePath
?:
throw
IllegalArgumentException
(
"Context cannot be null!"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment