Advertisement
Guest User

Untitled

a guest
Oct 19th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.83 KB | None | 0 0
  1. module EsonPrimitives
  2.  
  3. open System
  4.  
  5. type Creds =
  6.   | OAuth2 of obj
  7.   | Basic of string * string
  8.  
  9. type V1Connector = {
  10.   uri: Uri
  11.   creds: Creds
  12.   }
  13.  
  14. type Oid = string
  15. type Name = string
  16. type Value = string
  17.  
  18. type AttrValue =
  19.   | Val of Value
  20.   | Date of Value
  21.   | Rel of Oid
  22.   | Rels of Oid list
  23.  
  24. type Attrs = (Name * AttrValue) list
  25.  
  26. let days = TimeSpan.FromDays
  27.  
  28. type Loader(conn:V1Connector) =
  29.  
  30.   let pushDbTimes s = failwith "Not Implemented"
  31.  
  32.   member this.find (typename:Name) (name:Name) : Oid =
  33.     failwith "Not Implemented"
  34.  
  35.   member this.insertAs (who:Oid) (atype:Name) (attrs:Attrs) : Oid =
  36.     failwith "Not Implemented"
  37.  
  38.   member this.updateAs (who:Oid) (oid:Oid) (attrs:Attrs) =
  39.     failwith "Not Implemented"
  40.  
  41.   member this.advanceTime (span:System.TimeSpan) a =
  42.     pushDbTimes span
  43.     a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement