module LoggedData exposing ( LoggedData , build ) import Time exposing (Time) import Msg exposing (Msg) import Model exposing (Model) import Model.Translations exposing (..) import Model.Conf exposing (..) import Model.Payment exposing (Payments) import Model.User exposing (Users, UserId) import Model.Income exposing (Incomes) import LoggedIn.Model as LoggedInModel type alias LoggedData = { currentTime : Time , translations : Translations , conf : Conf , users : Users , me : UserId , payments : Payments , incomes : Incomes } build : Model -> LoggedInModel.Model -> LoggedData build model loggedIn = { currentTime = model.currentTime , translations = model.translations , conf = model.conf , users = loggedIn.users , me = loggedIn.me , payments = loggedIn.payments , incomes = loggedIn.incomes }