Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

1 ligne
6.2 KiB

  1. {"abstract":[{"type":"text","text":"Sets up the tank values using the given payload."}],"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"attribute","text":"@"},{"text":"MainActor","preciseIdentifier":"s:ScM","kind":"attribute"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"setupTankValuesWithPayLoad"},{"kind":"text","text":"("},{"kind":"externalParam","text":"payload"},{"kind":"text","text":": ["},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":"], ","kind":"text"},{"kind":"externalParam","text":"webSocket"},{"text":": ","kind":"text"},{"text":"WebSocketViewModel","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/WebSocketViewModel","kind":"typeIdentifier","preciseIdentifier":"s:7Fueling18WebSocketViewModelC"},{"kind":"text","text":")"}],"platforms":["iOS"],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"content":[{"inlineContent":[{"text":"An array of strings containing the tank information.","type":"text"}],"type":"paragraph"}],"name":"payload"},{"name":"webSocket","content":[{"inlineContent":[{"type":"text","text":"The WebSocket view model to update with the tank information."}],"type":"paragraph"}]}],"kind":"parameters"},{"content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"type":"codeListing","code":["func setupTankValuesWithPayLoad(payload: [String], webSocket: WebSocketViewModel) {"," if payload.count >= 8 {"," webSocket.asset = payload[0]"," webSocket.make = payload[1]"," webSocket.model = payload[2]"," webSocket.product = payload[3]"," webSocket.serialNumber = payload[4]"," webSocket.tankNumber = payload[5]"," webSocket.tankCapacity = Double(payload[6]) ?? 0.0"," webSocket.fuelType = payload[7]"," }","}"],"syntax":"Swift"}],"kind":"content"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/ScanView2"]]},"identifier":{"url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/ScanView2\/setupTankValuesWithPayLoad(payload:webSocket:)","interfaceLanguage":"swift"},"metadata":{"roleHeading":"Instance Method","modules":[{"name":"Fueling"}],"role":"symbol","externalID":"s:7Fueling9ScanView2V26setupTankValuesWithPayLoad7payload9webSocketySaySSG_AA03WebL9ViewModelCtF","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"setupTankValuesWithPayLoad"},{"text":"(","kind":"text"},{"text":"payload","kind":"externalParam"},{"text":": [","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":"], ","kind":"text"},{"kind":"externalParam","text":"webSocket"},{"text":": ","kind":"text"},{"text":"WebSocketViewModel","preciseIdentifier":"s:7Fueling18WebSocketViewModelC","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"setupTankValuesWithPayLoad(payload:webSocket:)","symbolKind":"method"},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/fueling\/scanview2\/setuptankvalueswithpayload(payload:websocket:)"]}],"references":{"doc://rpm.com.production.Scanner/documentation/Fueling/ScanView2/setupTankValuesWithPayLoad(payload:webSocket:)":{"kind":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"setupTankValuesWithPayLoad","kind":"identifier"},{"text":"(","kind":"text"},{"text":"payload","kind":"externalParam"},{"kind":"text","text":": ["},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":"], ","kind":"text"},{"text":"webSocket","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"WebSocketViewModel","kind":"typeIdentifier","preciseIdentifier":"s:7Fueling18WebSocketViewModelC"},{"kind":"text","text":")"}],"title":"setupTankValuesWithPayLoad(payload:webSocket:)","url":"\/documentation\/fueling\/scanview2\/setuptankvalueswithpayload(payload:websocket:)","role":"symbol","abstract":[{"text":"Sets up the tank values using the given payload.","type":"text"}],"identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/ScanView2\/setupTankValuesWithPayLoad(payload:webSocket:)"},"doc://rpm.com.production.Scanner/documentation/Fueling/ScanView2":{"kind":"symbol","abstract":[{"type":"codeVoice","code":"ScanView2"},{"text":" is a SwiftUI view that manages the UI for scanning and displaying tank information.","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"ScanView2"}],"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"ScanView2"}],"identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/ScanView2","role":"symbol","type":"topic","title":"ScanView2","url":"\/documentation\/fueling\/scanview2"},"doc://rpm.com.production.Scanner/documentation/Fueling":{"kind":"symbol","url":"\/documentation\/fueling","title":"Fueling","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","abstract":[{"type":"text","text":"The Scanner app is designed to facilitate secure and efficient fuel management operations, primarily focusing on user authentication, fuel data collection, and network communication. The app includes several key features to ensure seamless and reliable interactions between users and the backend systems, leveraging technologies like WebSockets, Core Data, and biometric authentication."}],"type":"topic","role":"collection"},"doc://rpm.com.production.Scanner/documentation/Fueling/WebSocketViewModel":{"kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"WebSocketViewModel"}],"navigatorTitle":[{"kind":"identifier","text":"WebSocketViewModel"}],"abstract":[{"text":"The ","type":"text"},{"type":"codeVoice","code":"WebSocketViewModel"},{"type":"text","text":" class is responsible for managing WebSocket connections, handling messages, and updating application state based on WebSocket events."}],"url":"\/documentation\/fueling\/websocketviewmodel","type":"topic","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/WebSocketViewModel","title":"WebSocketViewModel"}}}